Revert "fix:一言API设置重复写入"

This reverts commit 3cf1ea438b.
This commit is contained in:
2026-04-05 09:12:31 +08:00
parent 3190211f9a
commit b62055e705
2 changed files with 11 additions and 163 deletions
@@ -37,9 +37,6 @@ namespace Ink_Canvas
/// <param name="skipAutoUpdateCheck">指示是否跳过自动更新检查;为 true 时不会在加载设置后执行自动更新检测。</param>
private void LoadSettings(bool isStartup = false, bool skipAutoUpdateCheck = false)
{
BeginDeferredSettingsSaveDuringLoad();
try
{
AppVersionTextBlock.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString();
try
{
@@ -453,6 +450,12 @@ namespace Ink_Canvas
: Visibility.Collapsed;
}
// 初始化HitokotoCategories,如果为空则默认全选
if (Settings.Appearance.HitokotoCategories == null || Settings.Appearance.HitokotoCategories.Count == 0)
{
Settings.Appearance.HitokotoCategories = new List<string> { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l" };
}
ToggleSwitchEnableQuickPanel.IsOn = Settings.Appearance.IsShowQuickPanel;
ToggleSwitchEnableSplashScreen.IsOn = Settings.Appearance.EnableSplashScreen;
@@ -1319,11 +1322,6 @@ namespace Ink_Canvas
// 刷新配置文件列表
try { RefreshConfigProfileList(); } catch (Exception ex) { LogHelper.WriteLogToFile($"刷新配置文件列表失败: {ex.Message}", LogHelper.LogType.Warning); }
}
finally
{
EndDeferredSettingsSaveDuringLoad();
}
}
/// <summary>