删除无效项目时不需重启explorer

This commit is contained in:
蓝点lilac
2020-12-29 23:27:47 +08:00
parent 7d625f4166
commit 8bdc5e70ec

View File

@@ -63,7 +63,7 @@ namespace ContextMenuManager.Controls
public void DeleteMe()
{
Array.ForEach(BlockedPaths, path => { RegistryEx.DeleteValue(path, this.Value); });
ExplorerRestarter.NeedRestart = true;
if(!this.Guid.Equals(Guid.Empty)) ExplorerRestarter.NeedRestart = true;
this.Dispose();
}
}