修复部分bug

This commit is contained in:
蓝点lilac
2020-12-10 18:26:12 +08:00
parent e7d98697d1
commit 00c6a9377a
2 changed files with 19 additions and 1 deletions

View File

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

View File

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