Skip to content

Commit

Permalink
detacheventhandler
Browse files Browse the repository at this point in the history
  • Loading branch information
amanpras committed Aug 14, 2024
1 parent 860a27f commit 682439e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Ginger/Ginger/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@ public MainWindow()

GingerCore.General.DoEvents();

this.Closed += MainWindow_Closed;
}

private void MainWindow_Closed(object? sender, EventArgs e)
{
DetachEventHandlers();
}

private void MainWindow_StateChanged(object? sender, EventArgs e)
Expand Down Expand Up @@ -569,6 +563,8 @@ private void MainWindow_Closing(object sender, System.ComponentModel.CancelEvent

if (userSelection == eUserMsgSelection.Yes)
{
DetachEventHandlers();

AppCleanUp();
}
else
Expand Down

0 comments on commit 682439e

Please sign in to comment.