mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-08 02:09:51 +08:00
Add FocusWindowOnOpen option for window focus on open #1695
This commit is contained in:
@@ -300,7 +300,12 @@ public partial class ViewerWindow
|
||||
|
||||
if (!IsVisible)
|
||||
{
|
||||
Dispatcher.BeginInvoke(new Action(() => this.BringToFront(Topmost)), DispatcherPriority.Render);
|
||||
Dispatcher.BeginInvoke(new Action(() =>
|
||||
{
|
||||
this.BringToFront(Topmost);
|
||||
if (SettingHelper.Get("FocusWindowOnOpen", false))
|
||||
Activate();
|
||||
}), DispatcherPriority.Render);
|
||||
Show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user