Skip to content

Commit 04d959c

Browse files
committed
update method call to short-circuit logical operators
1 parent dd9cb2f commit 04d959c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Flow.Launcher/Helper/HotKeyMapper.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Flow.Launcher.Infrastructure.Hotkey;
1+
using Flow.Launcher.Infrastructure.Hotkey;
22
using Flow.Launcher.Infrastructure.UserSettings;
33
using System;
44
using NHotkey;
@@ -82,15 +82,9 @@ internal static void OnHotkey(object sender, HotkeyEventArgs e)
8282
/// <summary>
8383
/// Checks if Flow Launcher should ignore any hotkeys
8484
/// </summary>
85-
/// <returns></returns>
8685
private static bool ShouldIgnoreHotkeys()
8786
{
88-
//double if to omit calling win32 function
89-
if (settings.IgnoreHotkeysOnFullscreen)
90-
if (WindowsInteropHelper.IsWindowFullscreen())
91-
return true;
92-
93-
return false;
87+
return settings.IgnoreHotkeysOnFullscreen && WindowsInteropHelper.IsWindowFullscreen();
9488
}
9589

9690
private static void SetCustomPluginHotkey()

0 commit comments

Comments
 (0)