Skip to content

Commit be5f955

Browse files
committed
Fix restart not working
1 parent 1ed86a8 commit be5f955

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/UniGetUI/App.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ private async void UpdateUniGetUIIfPossible(int round = 0)
540540
public void KillAndRestart()
541541
{
542542
Process.Start(CoreData.UniGetUIExecutableFile);
543-
DisposeAndQuit(0);
543+
MainApp.Instance.MainWindow?.Close();
544+
Environment.Exit(0);
544545
}
545546
}
546547
}

0 commit comments

Comments
 (0)