mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Validate hotkey
This commit is contained in:
parent
1defb6a417
commit
10fa2f7beb
1 changed files with 1 additions and 2 deletions
|
|
@ -9,7 +9,6 @@ using Flow.Launcher.Helper;
|
||||||
using Flow.Launcher.Infrastructure.Hotkey;
|
using Flow.Launcher.Infrastructure.Hotkey;
|
||||||
using Flow.Launcher.Plugin;
|
using Flow.Launcher.Plugin;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Windows.Interop;
|
|
||||||
|
|
||||||
namespace Flow.Launcher
|
namespace Flow.Launcher
|
||||||
{
|
{
|
||||||
|
|
@ -79,7 +78,7 @@ namespace Flow.Launcher
|
||||||
|
|
||||||
if (triggerValidate)
|
if (triggerValidate)
|
||||||
{
|
{
|
||||||
CurrentHotkeyAvailable = CheckHotkeyAvailability();
|
CurrentHotkeyAvailable = CurrentHotkey.CharKey != Key.None && CheckHotkeyAvailability();
|
||||||
if (!CurrentHotkeyAvailable)
|
if (!CurrentHotkeyAvailable)
|
||||||
{
|
{
|
||||||
tbMsg.Foreground = new SolidColorBrush(Colors.Red);
|
tbMsg.Foreground = new SolidColorBrush(Colors.Red);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue