Skip to content

Commit

Permalink
Fix duplicate event handlers in FDesktop
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Sep 30, 2015
1 parent 0556b67 commit 92b421c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions NAPS2.Core/WinForms/FDesktop.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions NAPS2.Core/WinForms/FDesktop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ public FDesktop(IEmailer emailer, ImageSaver imageSaver, StringWrapper stringWra
this.pdfSaver = pdfSaver;
this.errorOutput = errorOutput;
InitializeComponent();

thumbnailList1.MouseWheel += thumbnailList1_MouseWheel;
Shown += FDesktop_Shown;
FormClosing += FDesktop_FormClosing;
Closed += FDesktop_Closed;
}

protected override void OnLoad(object sender, EventArgs eventArgs)
Expand Down

0 comments on commit 92b421c

Please sign in to comment.