From 3c908feb95e7ee40d62e697ceff4788187891bed Mon Sep 17 00:00:00 2001
From: CJKmkp <2564608840@qq.com>
Date: Sat, 7 Feb 2026 14:53:37 +0800
Subject: [PATCH] =?UTF-8?q?add:=E6=96=B0=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../SettingsViews/SettingsViews/SettingsPanelBase.cs | 3 ---
.../SettingsViews/UpdateCenterPanel.xaml.cs | 12 ++++++++----
Ink Canvas/Windows/SettingsViews/SettingsWindow.xaml | 4 ++--
3 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/Ink Canvas/Windows/SettingsViews/SettingsViews/SettingsPanelBase.cs b/Ink Canvas/Windows/SettingsViews/SettingsViews/SettingsPanelBase.cs
index f657b15e..793e1608 100644
--- a/Ink Canvas/Windows/SettingsViews/SettingsViews/SettingsPanelBase.cs
+++ b/Ink Canvas/Windows/SettingsViews/SettingsViews/SettingsPanelBase.cs
@@ -268,9 +268,6 @@ namespace Ink_Canvas.Windows.SettingsViews
}
}
- ///
- /// 处理选项变化 - 子类需要实现
- ///
protected abstract void HandleOptionChange(string group, string value);
}
}
diff --git a/Ink Canvas/Windows/SettingsViews/SettingsViews/UpdateCenterPanel.xaml.cs b/Ink Canvas/Windows/SettingsViews/SettingsViews/UpdateCenterPanel.xaml.cs
index d9bf3a74..d21f949d 100644
--- a/Ink Canvas/Windows/SettingsViews/SettingsViews/UpdateCenterPanel.xaml.cs
+++ b/Ink Canvas/Windows/SettingsViews/SettingsViews/UpdateCenterPanel.xaml.cs
@@ -362,12 +362,12 @@ namespace Ink_Canvas.Windows.SettingsViews
HistoryLogViewer.Markdown = markdown.ToString();
- foreach (var (version, downloadUrl, releaseNotes) in _historyVersions)
+ foreach (var versionInfo in _historyVersions)
{
var item = new ComboBoxItem
{
- Content = version,
- Tag = (version, downloadUrl, releaseNotes)
+ Content = versionInfo.version,
+ Tag = versionInfo
};
RollbackVersionComboBox.Items.Add(item);
}
@@ -386,8 +386,12 @@ namespace Ink_Canvas.Windows.SettingsViews
private void RollbackVersionComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
- if (RollbackVersionComboBox.SelectedItem is ComboBoxItem selectedItem && selectedItem.Tag is (string version, string downloadUrl, string releaseNotes))
+ if (RollbackVersionComboBox.SelectedItem is ComboBoxItem selectedItem && selectedItem.Tag is ValueTuple versionInfo)
{
+ var version = versionInfo.Item1;
+ var downloadUrl = versionInfo.Item2;
+ var releaseNotes = versionInfo.Item3;
+
if (!string.IsNullOrEmpty(releaseNotes))
{
HistoryLogViewer.Markdown = $"# {version}\n\n{releaseNotes}";
diff --git a/Ink Canvas/Windows/SettingsViews/SettingsWindow.xaml b/Ink Canvas/Windows/SettingsViews/SettingsWindow.xaml
index 60f8cb07..a86fc929 100644
--- a/Ink Canvas/Windows/SettingsViews/SettingsWindow.xaml
+++ b/Ink Canvas/Windows/SettingsViews/SettingsWindow.xaml
@@ -198,8 +198,8 @@
-
-
+
+