diff --git a/ContextMenuManager/Controls/ShellSubMenuDialog.cs b/ContextMenuManager/Controls/ShellSubMenuDialog.cs index 10413ee..ad28da7 100644 --- a/ContextMenuManager/Controls/ShellSubMenuDialog.cs +++ b/ContextMenuManager/Controls/ShellSubMenuDialog.cs @@ -481,9 +481,27 @@ namespace ContextMenuManager.Controls this.Owner = list; BtnMoveUp.MouseDown += (sender, e) => Owner.MoveItem(this, true); BtnMoveDown.MouseDown += (sender, e) => Owner.MoveItem(this, false); + SetItemTextValue(); } public PrivateMultiItemsList Owner { get; private set; } + + private void SetItemTextValue() + { + using(var key = RegistryEx.GetRegistryKey(this.RegPath, true)) + { + bool hasValue = false; + foreach(string valueName in new[] { "MUIVerb", "" }) + { + if(key.GetValue(valueName) != null) + { + hasValue = true; break; + } + } + if(!hasValue) key.SetValue("MUIVerb", this.ItemText); + } + + } } sealed class SeparatorItem : SubSeparatorItem diff --git a/ContextMenuManager/Properties/Resources/Texts/GuidInfosDic.ini b/ContextMenuManager/Properties/Resources/Texts/GuidInfosDic.ini index 2093705..03c3578 100644 --- a/ContextMenuManager/Properties/Resources/Texts/GuidInfosDic.ini +++ b/ContextMenuManager/Properties/Resources/Texts/GuidInfosDic.ini @@ -421,7 +421,7 @@ Text=Balabolka Icon=.\balabolka.exe,0 ;PowerToys PowerRename [0440049f-d1dc-4e46-b27b-98393d79486b] -Text=@*,-101 +Text=@*,-101 ;PowerToys调整图片大小 [51b4d7e5-7568-4234-b4bb-47fb3c016a69] Text=@*,-101 \ No newline at end of file