add:崩溃后操作

This commit is contained in:
CJK_mkp
2025-06-12 10:13:47 +08:00
parent 661fd21626
commit 0e5b31a8e4
6 changed files with 3744 additions and 3612 deletions
+21
View File
@@ -214,6 +214,12 @@ namespace Ink_Canvas {
{
FoldFloatingBar_MouseUp(null, null);
}
// 恢复崩溃后操作设置
if (App.CrashAction == App.CrashActionType.SilentRestart)
RadioCrashSilentRestart.IsChecked = true;
else
RadioCrashNoAction.IsChecked = true;
}
private void SystemEventsOnDisplaySettingsChanged(object sender, EventArgs e) {
@@ -321,6 +327,21 @@ namespace Ink_Canvas {
}
}
// 新增:崩溃后操作设置按钮事件
private void RadioCrashAction_Checked(object sender, RoutedEventArgs e)
{
if (RadioCrashSilentRestart != null && RadioCrashSilentRestart.IsChecked == true)
{
App.CrashAction = App.CrashActionType.SilentRestart;
}
else if (RadioCrashNoAction != null && RadioCrashNoAction.IsChecked == true)
{
App.CrashAction = App.CrashActionType.NoAction;
}
// 可选:保存到配置文件
// SaveSettingsToFile();
}
#endregion Definations and Loading
}
}