fix:开关状态显示错误

This commit is contained in:
2025-08-24 16:24:29 +08:00
parent 441f40886f
commit b4250b9161
4 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -2028,7 +2028,7 @@ namespace Ink_Canvas
LoadSettings();
isLoaded = true;
ToggleSwitchRunAtStartup.IsOn = true;
ToggleSwitchRunAtStartup.IsOn = false;
}
catch { }
@@ -54,10 +54,15 @@ namespace Ink_Canvas
{
ToggleSwitchRunAtStartup.IsOn = true;
}
else
{
ToggleSwitchRunAtStartup.IsOn = false;
}
}
catch (Exception ex)
{
LogHelper.WriteLogToFile(ex.ToString(), LogHelper.LogType.Error);
ToggleSwitchRunAtStartup.IsOn = false;
}
if (Settings.Startup != null)
@@ -141,6 +146,10 @@ namespace Ink_Canvas
else
{
Settings.Startup = new Startup();
Settings.Startup.IsEnableNibMode = false; // 默认关闭笔尖模式
ToggleSwitchEnableNibMode.IsOn = false; // 默认关闭笔尖模式
BoardToggleSwitchEnableNibMode.IsOn = false; // 默认关闭笔尖模式
BoundsWidth = Settings.Advanced.FingerModeBoundsWidth; // 使用手指模式边界宽度
}
// 恢复崩溃后操作设置