Fix unsupported CLSID was not shown

This commit is contained in:
ema
2025-05-25 01:59:31 +08:00
parent 2e8fd2bae7
commit 51a46155d7

View File

@@ -25,7 +25,6 @@ namespace QuickLook.Plugin.CLSIDViewer;
public class Plugin : IViewer
{
private CLSIDInfoPanel _ip;
private string _path;
public int Priority => -1;
@@ -57,13 +56,12 @@ public class Plugin : IViewer
public void View(string path, ContextObject context)
{
_path = path;
_ip = new CLSIDInfoPanel();
_ip.DisplayInfo(path, context);
context.ViewerContent = _ip;
context.Title = $"{CLSIDRegister.GetName(path) ?? path}";
context.IsBusy = true;
context.IsBusy = false;
}
public void Cleanup()