mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 02:09:05 +00:00
Fix unsupported CLSID was not shown
This commit is contained in:
@@ -25,7 +25,6 @@ namespace QuickLook.Plugin.CLSIDViewer;
|
|||||||
public class Plugin : IViewer
|
public class Plugin : IViewer
|
||||||
{
|
{
|
||||||
private CLSIDInfoPanel _ip;
|
private CLSIDInfoPanel _ip;
|
||||||
private string _path;
|
|
||||||
|
|
||||||
public int Priority => -1;
|
public int Priority => -1;
|
||||||
|
|
||||||
@@ -57,13 +56,12 @@ public class Plugin : IViewer
|
|||||||
|
|
||||||
public void View(string path, ContextObject context)
|
public void View(string path, ContextObject context)
|
||||||
{
|
{
|
||||||
_path = path;
|
|
||||||
_ip = new CLSIDInfoPanel();
|
_ip = new CLSIDInfoPanel();
|
||||||
_ip.DisplayInfo(path, context);
|
_ip.DisplayInfo(path, context);
|
||||||
|
|
||||||
context.ViewerContent = _ip;
|
context.ViewerContent = _ip;
|
||||||
context.Title = $"{CLSIDRegister.GetName(path) ?? path}";
|
context.Title = $"{CLSIDRegister.GetName(path) ?? path}";
|
||||||
context.IsBusy = true;
|
context.IsBusy = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
|
Reference in New Issue
Block a user