Revert "fix:issue #110"

This reverts commit f8e4732dcd.
This commit is contained in:
2025-07-29 02:33:19 +08:00
parent 506ba52502
commit 7182f3554a
3 changed files with 11 additions and 16 deletions
@@ -1654,14 +1654,10 @@ namespace Ink_Canvas {
}
public void BtnRestart_Click(object sender, RoutedEventArgs e) {
try {
Process.Start(System.Windows.Forms.Application.ExecutablePath, "-m");
App.IsAppExitByUser = true;
CloseIsFromButton = true;
Application.Current.Shutdown();
} catch (Exception ex) {
LogHelper.NewLog($"重启程序时出错: {ex.Message}");
}
Process.Start(System.Windows.Forms.Application.ExecutablePath, "-m");
App.IsAppExitByUser = true;
CloseIsFromButton = true;
Application.Current.Shutdown();
}
private void SettingsOverlayClick(object sender, MouseButtonEventArgs e) {