diff --git a/ContextMenuManager/Controls/DetailedEditList.cs b/ContextMenuManager/Controls/DetailedEditList.cs index 1d5be72..8787834 100644 --- a/ContextMenuManager/Controls/DetailedEditList.cs +++ b/ContextMenuManager/Controls/DetailedEditList.cs @@ -10,7 +10,7 @@ namespace ContextMenuManager.Controls { - sealed class DetailedEditList : SwitchDicList + sealed class DetailedEditList : SwitchDicList // 其他菜单 详细编辑 { public Guid GroupGuid { get; set; } diff --git a/ContextMenuManager/Controls/EnhanceMenusList.cs b/ContextMenuManager/Controls/EnhanceMenusList.cs index 8d1ec0d..d4a32b0 100644 --- a/ContextMenuManager/Controls/EnhanceMenusList.cs +++ b/ContextMenuManager/Controls/EnhanceMenusList.cs @@ -6,7 +6,7 @@ namespace ContextMenuManager.Controls { - sealed class EnhanceMenusList : SwitchDicList + sealed class EnhanceMenusList : SwitchDicList // 其他菜单 增强菜单 { public string ScenePath { get; set; } diff --git a/ContextMenuManager/Controls/GuidBlockedList.cs b/ContextMenuManager/Controls/GuidBlockedList.cs index 8e57d73..56fa63c 100644 --- a/ContextMenuManager/Controls/GuidBlockedList.cs +++ b/ContextMenuManager/Controls/GuidBlockedList.cs @@ -9,7 +9,7 @@ namespace ContextMenuManager.Controls { - sealed class GuidBlockedList : MyList + sealed class GuidBlockedList : MyList // 其他规则 GUID锁 { public const string HKLMBLOCKED = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked"; public const string HKCUBLOCKED = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked"; diff --git a/ContextMenuManager/Controls/IEList.cs b/ContextMenuManager/Controls/IEList.cs index d129c0f..e3e3a7c 100644 --- a/ContextMenuManager/Controls/IEList.cs +++ b/ContextMenuManager/Controls/IEList.cs @@ -8,7 +8,7 @@ namespace ContextMenuManager.Controls { - sealed class IEList : MyList + sealed class IEList : MyList // 其他规则 IE浏览器 { public const string IEPath = @"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer"; diff --git a/ContextMenuManager/Controls/OpenWithList.cs b/ContextMenuManager/Controls/OpenWithList.cs index 082f626..f8ad524 100644 --- a/ContextMenuManager/Controls/OpenWithList.cs +++ b/ContextMenuManager/Controls/OpenWithList.cs @@ -9,7 +9,7 @@ namespace ContextMenuManager.Controls { - sealed class OpenWithList : MyList + sealed class OpenWithList : MyList // 主页 打开方式 { public void LoadItems() { diff --git a/ContextMenuManager/Controls/SendToList.cs b/ContextMenuManager/Controls/SendToList.cs index f8731b1..5d7a069 100644 --- a/ContextMenuManager/Controls/SendToList.cs +++ b/ContextMenuManager/Controls/SendToList.cs @@ -7,7 +7,7 @@ namespace ContextMenuManager.Controls { - sealed class SendToList : MyList + sealed class SendToList : MyList // 主页 发送到 { private static readonly string SendToPath = Environment.ExpandEnvironmentVariables(@"%AppData%\Microsoft\Windows\SendTo"); private static readonly string DefaultSendToPath = Environment.ExpandEnvironmentVariables(@"%SystemDrive%\Users\Default\AppData\Roaming\Microsoft\Windows\SendTo"); diff --git a/ContextMenuManager/Controls/ShellList.cs b/ContextMenuManager/Controls/ShellList.cs index f573761..94568bf 100644 --- a/ContextMenuManager/Controls/ShellList.cs +++ b/ContextMenuManager/Controls/ShellList.cs @@ -13,7 +13,7 @@ namespace ContextMenuManager.Controls { - sealed class ShellList : MyList + sealed class ShellList : MyList // 文件类型 Ink文件 uwp Ink exe文件 未知格式 // 主页 第一栏 { public const string MENUPATH_FILE = @"HKEY_CLASSES_ROOT\*";//文件 public const string MENUPATH_FOLDER = @"HKEY_CLASSES_ROOT\Folder";//文件夹 @@ -25,6 +25,7 @@ sealed class ShellList : MyList public const string MENUPATH_COMPUTER = @"HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}";//此电脑 public const string MENUPATH_RECYCLEBIN = @"HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}";//回收站 public const string MENUPATH_LIBRARY = @"HKEY_CLASSES_ROOT\LibraryFolder";//库 + public const string MENUPATH_LIBRARY_BACKGROUND = @"HKEY_CLASSES_ROOT\LibraryFolder\Background";//库背景 public const string MENUPATH_LIBRARY_USER = @"HKEY_CLASSES_ROOT\UserLibraryFolder";//用户库 public const string MENUPATH_UWPLNK = @"HKEY_CLASSES_ROOT\Launcher.ImmersiveApplication";//UWP快捷方式 diff --git a/ContextMenuManager/Controls/ShellNewList.cs b/ContextMenuManager/Controls/ShellNewList.cs index df46065..830df84 100644 --- a/ContextMenuManager/Controls/ShellNewList.cs +++ b/ContextMenuManager/Controls/ShellNewList.cs @@ -14,7 +14,7 @@ namespace ContextMenuManager.Controls { - sealed class ShellNewList : MyList + sealed class ShellNewList : MyList // 主页 新建菜单 { public const string ShellNewPath = @"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew"; diff --git a/ContextMenuManager/Controls/SwitchDicList.cs b/ContextMenuManager/Controls/SwitchDicList.cs index eb9fe9f..b9fc80c 100644 --- a/ContextMenuManager/Controls/SwitchDicList.cs +++ b/ContextMenuManager/Controls/SwitchDicList.cs @@ -7,7 +7,7 @@ namespace ContextMenuManager.Controls { - class SwitchDicList : MyList + class SwitchDicList : MyList // 其他菜单 增强菜单 { public bool UseUserDic { get; set; } diff --git a/ContextMenuManager/Controls/WinXList.cs b/ContextMenuManager/Controls/WinXList.cs index 8701e00..3917a33 100644 --- a/ContextMenuManager/Controls/WinXList.cs +++ b/ContextMenuManager/Controls/WinXList.cs @@ -9,7 +9,7 @@ namespace ContextMenuManager.Controls { - sealed class WinXList : MyList + sealed class WinXList : MyList // 主页 Win+X { public static readonly string WinXPath = Environment.ExpandEnvironmentVariables(@"%LocalAppData%\Microsoft\Windows\WinX"); public static readonly string DefaultWinXPath = Environment.ExpandEnvironmentVariables(@"%SystemDrive%\Users\Default\AppData\Local\Microsoft\Windows\WinX"); diff --git a/ContextMenuManager/Methods/AppConfig.cs b/ContextMenuManager/Methods/AppConfig.cs index dc51d2b..72f7380 100644 --- a/ContextMenuManager/Methods/AppConfig.cs +++ b/ContextMenuManager/Methods/AppConfig.cs @@ -5,6 +5,7 @@ using System.Globalization; using System.IO; using System.Linq; +using System.Net; using System.Windows.Forms; namespace ContextMenuManager.Methods @@ -45,7 +46,8 @@ static AppConfig() public static readonly bool SaveToAppDir = ConfigDir == AppConfigDir; public static readonly bool IsFirstRun = !Directory.Exists(ConfigDir); public static string ConfigIni = $@"{ConfigDir}\Config.ini"; - public static string BackupDir = $@"{ConfigDir}\Backup"; + public static string ComputerHostName = Dns.GetHostName(); + public static string BackupDir = $@"{ConfigDir}\Backup\" + ComputerHostName; public static string LangsDir = $@"{ConfigDir}\Languages"; public static string ProgramsDir = $@"{ConfigDir}\Programs"; public static string DicsDir = $@"{ConfigDir}\Dictionaries";