Add blank lines

This commit is contained in:
Jack251970 2025-07-06 21:07:25 +08:00
parent 5c2127ec52
commit 7c41a37daa

View file

@ -43,12 +43,14 @@ namespace Flow.Launcher
App.API.ShowMsgBox(App.API.GetTranslation("emptyShortcut")); App.API.ShowMsgBox(App.API.GetTranslation("emptyShortcut"));
return; return;
} }
// Check if key is modified or adding a new one // Check if key is modified or adding a new one
if (((update && originalKey != Key) || !update) && _hotkeyVm.DoesShortcutExist(Key)) if (((update && originalKey != Key) || !update) && _hotkeyVm.DoesShortcutExist(Key))
{ {
App.API.ShowMsgBox(App.API.GetTranslation("duplicateShortcut")); App.API.ShowMsgBox(App.API.GetTranslation("duplicateShortcut"));
return; return;
} }
DialogResult = !update || originalKey != Key || originalValue != Value; DialogResult = !update || originalKey != Key || originalValue != Value;
Close(); Close();
} }