mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-11 01:03:32 +08:00
Add ExtensionFilterHelper and integrate with ViewWindowManager
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
This commit is contained in:
@@ -155,6 +155,10 @@ public class ViewWindowManager : IDisposable
|
||||
if (!path.StartsWith("::")) // CLSID
|
||||
return;
|
||||
|
||||
// Check extension filtering before proceeding
|
||||
if (!ExtensionFilterHelper.IsExtensionAllowed(path))
|
||||
return;
|
||||
|
||||
_invokedPath = path;
|
||||
|
||||
RunFocusMonitor();
|
||||
@@ -175,6 +179,10 @@ public class ViewWindowManager : IDisposable
|
||||
if (!Directory.Exists(path) && !File.Exists(path))
|
||||
return;
|
||||
|
||||
// Check extension filtering before proceeding
|
||||
if (!ExtensionFilterHelper.IsExtensionAllowed(path))
|
||||
return;
|
||||
|
||||
RunFocusMonitor();
|
||||
|
||||
var matchedPlugin = PluginManager.GetInstance().LoadedPlugins.Find(p =>
|
||||
|
||||
Reference in New Issue
Block a user