mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-09 02:07:50 +08:00
Now QuickLook handles preview invoked from Commom Dialogs (yet only matched bitness)
This commit is contained in:
@@ -70,14 +70,12 @@ namespace QuickLook
|
||||
|
||||
// if the current focus is in Desktop or explorer windows, just close the preview window and leave the task to System.
|
||||
var focus = NativeMethods.QuickLook.GetFocusedWindowType();
|
||||
if (focus == NativeMethods.QuickLook.FocusedWindowType.Desktop ||
|
||||
focus == NativeMethods.QuickLook.FocusedWindowType.Explorer)
|
||||
if (_path == NativeMethods.QuickLook.GetCurrentSelection())
|
||||
{
|
||||
StopFocusMonitor();
|
||||
_currentMainWindow.BeginHide();
|
||||
return;
|
||||
}
|
||||
if (focus != NativeMethods.QuickLook.FocusedWindowType.Invalid)
|
||||
{
|
||||
StopFocusMonitor();
|
||||
_currentMainWindow.BeginHide();
|
||||
return;
|
||||
}
|
||||
|
||||
// if the focus is in the preview window, run it
|
||||
if (!WindowHelper.IsForegroundWindowBelongToSelf())
|
||||
|
||||
Reference in New Issue
Block a user