From 04d959c4baa54fbd18701b9adca5fe95d8eb3294 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 12 Jul 2021 22:04:08 +1000 Subject: [PATCH] update method call to short-circuit logical operators --- Flow.Launcher/Helper/HotKeyMapper.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Flow.Launcher/Helper/HotKeyMapper.cs b/Flow.Launcher/Helper/HotKeyMapper.cs index b32b7edc4..503a110e0 100644 --- a/Flow.Launcher/Helper/HotKeyMapper.cs +++ b/Flow.Launcher/Helper/HotKeyMapper.cs @@ -1,4 +1,4 @@ -using Flow.Launcher.Infrastructure.Hotkey; +using Flow.Launcher.Infrastructure.Hotkey; using Flow.Launcher.Infrastructure.UserSettings; using System; using NHotkey; @@ -82,15 +82,9 @@ namespace Flow.Launcher.Helper /// /// Checks if Flow Launcher should ignore any hotkeys /// - /// private static bool ShouldIgnoreHotkeys() { - //double if to omit calling win32 function - if (settings.IgnoreHotkeysOnFullscreen) - if (WindowsInteropHelper.IsWindowFullscreen()) - return true; - - return false; + return settings.IgnoreHotkeysOnFullscreen && WindowsInteropHelper.IsWindowFullscreen(); } private static void SetCustomPluginHotkey()