Skip to content

Commit

Permalink
Upgrade hotkey format, even if count is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Jan 6, 2024
1 parent 4ea1e7f commit 426bd8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ function readSettings(doProcessSettings = true) {
lastKnownDisplays = {} // Reset lastKnownDisplays due to known bug in earlier versions
try {
// Upgrade hotkeys
if (settings.hotkeys && Object.values(settings.hotkeys)?.length > 0) {
if (settings.hotkeys && Object.values(settings.hotkeys)?.length >= 0) {
const newHotkeys = []
for (const hotkey of Object.values(settings.hotkeys)) {
const newHotkey = {
Expand Down

0 comments on commit 426bd8d

Please sign in to comment.