新设置
删除插件管理
This commit is contained in:
@@ -108,18 +108,6 @@
|
|||||||
</ui:SettingsExpander.Items>
|
</ui:SettingsExpander.Items>
|
||||||
</ui:SettingsExpander>
|
</ui:SettingsExpander>
|
||||||
|
|
||||||
<!-- 插件管理 -->
|
|
||||||
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}"
|
|
||||||
Text="插件管理" />
|
|
||||||
|
|
||||||
<ui:SettingsCard Description="通过插件扩展InkCanvas的功能。您可以启用或禁用插件,或加载自定义插件。"
|
|
||||||
Header="插件管理">
|
|
||||||
<ui:SettingsCard.HeaderIcon>
|
|
||||||
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Settings}" />
|
|
||||||
</ui:SettingsCard.HeaderIcon>
|
|
||||||
<Button Name="BtnOpenPluginManager" Content="打开插件管理器" Click="BtnOpenPluginManager_Click" />
|
|
||||||
</ui:SettingsCard>
|
|
||||||
|
|
||||||
<!-- 底部空白 -->
|
<!-- 底部空白 -->
|
||||||
<Rectangle Height="48" />
|
<Rectangle Height="48" />
|
||||||
|
|
||||||
|
|||||||
@@ -243,26 +243,5 @@ namespace Ink_Canvas.Windows.SettingsViews2.Pages
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 插件管理事件处理
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 打开插件管理器按钮点击事件
|
|
||||||
/// </summary>
|
|
||||||
private void BtnOpenPluginManager_Click(object sender, RoutedEventArgs e)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// 创建并显示插件设置窗口
|
|
||||||
var pluginSettingsWindow = new Windows.PluginSettingsWindow();
|
|
||||||
pluginSettingsWindow.ShowDialog();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
System.Diagnostics.Debug.WriteLine($"打开插件管理器时出错: {ex.Message}");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user