Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Fixed app quit issues (win), #2225
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrekV committed Oct 25, 2017
1 parent 39eec43 commit e30d0ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,7 @@ private static void onLogout(object sender, RoutedEventArgs e)

private static void onQuit(object sender, RoutedEventArgs e)
{
if (mainWindow.IsVisible)
{
mainWindow.Close();
}
else
{
Environment.Exit(0);
}
mainWindow.shutdown(0);
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ public void ShowOnTop()
this.Activate();
}

private void shutdown(int exitCode)
public void shutdown(int exitCode)
{
if (this.closing)
return;
Expand Down

0 comments on commit e30d0ad

Please sign in to comment.