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 @@
-
-
+
+