mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-15 02:00:35 +08:00
1.3 KiB
1.3 KiB
QuickLook.Plugin.InsvBlocker
This plugin prevents QuickLook from handling .insv files (Insta360 panoramic video files).
Purpose
Insta360Studio has its own QuickLook application with the same name and activation method (pressing spacebar). When both applications are installed, pressing space on .insv files would cause both QuickLook windows to appear, creating a conflict.
This plugin solves that issue by having QuickLook claim the file (via high priority) but immediately close without displaying anything, allowing Insta360Studio's QuickLook to handle the file instead.
Implementation
- Priority:
int.MaxValue(highest priority, checked before all other plugins) - Behavior:
- Returns
trueforCanHandle()on files with.insvextension - Sets minimal window size (1x1 pixels) in
Prepare() - Closes the window immediately in
View()usingDispatcherPriority.Send
- Returns
Technical Details
The plugin prevents the QuickLook window from becoming visible by:
- Matching
.insvfiles with highest priority - Setting a minimal window size to reduce visual impact if window briefly appears
- Closing the window immediately after content is set, before it becomes visible to the user
This approach ensures that Insta360Studio's QuickLook can handle the file without interference.