fix:退出确认按钮

This commit is contained in:
2025-07-31 10:03:29 +08:00
parent b25a5aac8c
commit 78f8d9a271
3 changed files with 40 additions and 14 deletions
@@ -1701,16 +1701,15 @@ namespace Ink_Canvas {
public void BtnExit_Click(object sender, RoutedEventArgs e) {
App.IsAppExitByUser = true;
Application.Current.Shutdown();
// CloseIsFromButton = true;
// Close();
// 不设置 CloseIsFromButton = true,让它也经过确认流程
Close();
}
public void BtnRestart_Click(object sender, RoutedEventArgs e) {
Process.Start(System.Windows.Forms.Application.ExecutablePath, "-m");
App.IsAppExitByUser = true;
CloseIsFromButton = true;
Application.Current.Shutdown();
// 不设置 CloseIsFromButton = true,让它也经过确认流程
Close();
}
private void SettingsOverlayClick(object sender, MouseButtonEventArgs e) {