mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-16 01:08:03 +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)
|
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();
|
Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user