Skip to content

Commit

Permalink
fix for shortcut migration (#1527)
Browse files Browse the repository at this point in the history
* fix for shortcut migration

* create migration to repair shortcut
  • Loading branch information
floating authored Apr 19, 2023
1 parent c2000ae commit f25161e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
11 changes: 11 additions & 0 deletions main/store/migrations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,17 @@ const migrations = {
}
}

return initial
},
36: (initial) => {
if (
initial?.main?.shortcuts?.summon &&
typeof initial.main.shortcuts.summon === 'object' &&
initial.main.shortcuts.summon.enabled === undefined
) {
initial.main.shortcuts.summon.enabled = true
}

return initial
}
}
Expand Down
1 change: 1 addition & 0 deletions main/store/state/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ const initial = {
signerCompatibilityWarning: main('mute.signerCompatibilityWarning', false)
},
shortcuts: {
altSlash: main('shortcuts.altSlash', true),
summon: main('shortcuts.summon', {
modifierKeys: ['Alt'],
shortcutKey: 'Slash',
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frame",
"version": "0.6.3",
"version": "0.6.4",
"description": "System-wide web3",
"main": "compiled/main",
"scripts": {
Expand Down

0 comments on commit f25161e

Please sign in to comment.