feat: 优化主界面及控件功能

This commit is contained in:
cyf
2026-08-30 12:00:03 +08:00
parent 24653fbe6c
commit 641d3c232d
6 changed files with 300 additions and 40 deletions
@@ -13,6 +13,8 @@ namespace Lskj.Main.Control
private ToolStripMenuItem _selectedTopMenu;
private bool _styleUpdatePending;
private bool _shortcutRedrawSuppressed;
private bool _shortcutChannelDisabled;
private bool _enforcingShortcutHidden;
private string _styledSubSysId;
private string _styledSubSysName;
@@ -45,7 +47,12 @@ namespace Lskj.Main.Control
/// <summary>保持旧 FrmMain 的 OnLoad 调用契约,在菜单绑定完成后应用新版样式。</summary>
public void OnLoad()
{
// 新版主界面不显示旧版右侧快捷通道。先启用旧控件已有的隐藏开关,
// 使后续目录切换不再继续创建按菜单位置生成的快捷项。
_shortcutChannelDisabled = true;
SystemInfo.Instance.HideGallerys = true;
_legacyPanel.OnLoad();
DisableShortcutChannel();
ApplyWpfShellStyle();
}