This commit is contained in:
PrefacedCorg
2026-04-23 23:53:52 +08:00
parent 532aa03c56
commit f05062f902
6 changed files with 8 additions and 83 deletions
-11
View File
@@ -1,11 +0,0 @@
using Ink_Canvas.Windows.SettingsViews.Helpers;
namespace Ink_Canvas
{
public partial class MainWindow
{
public static bool StartAutomaticallyCreate(string exeName) => AutoStartHelper.StartAutomaticallyCreate(exeName);
public static bool StartAutomaticallyDel(string exeName) => AutoStartHelper.StartAutomaticallyDel(exeName);
}
}
-12
View File
@@ -3063,18 +3063,6 @@ namespace Ink_Canvas
catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex); }
}
#endregion
#region Ink To Shape
#endregion
#region Advanced
+7 -14
View File
@@ -1015,22 +1015,15 @@ namespace Ink_Canvas
}
// ModeSettings
if (Settings.ModeSettings != null)
{
ToggleSwitchMode.IsOn = Settings.ModeSettings.IsPPTOnlyMode;
// 根据加载的配置状态执行相应的窗口显示/隐藏逻辑
if (isStartup && Settings.ModeSettings.IsPPTOnlyMode)
{
// 启动时如果是仅PPT模式,隐藏主窗口
Hide();
LogHelper.WriteLogToFile("启动时检测到仅PPT模式,主窗口已隐藏", LogHelper.LogType.Event);
}
}
else
if (Settings.ModeSettings == null)
{
Settings.ModeSettings = new ModeSettings();
ToggleSwitchMode.IsOn = false;
}
if (isStartup && Settings.ModeSettings.IsPPTOnlyMode)
{
Hide();
LogHelper.WriteLogToFile("启动时检测到仅PPT模式,主窗口已隐藏", LogHelper.LogType.Event);
}
// Automation