From f25161e2fe3e42748ca5da296796ab6fbf43489e Mon Sep 17 00:00:00 2001 From: Jordan Muir Date: Wed, 19 Apr 2023 08:16:28 -0400 Subject: [PATCH] fix for shortcut migration (#1527) * fix for shortcut migration * create migration to repair shortcut --- main/store/migrations/index.js | 11 +++++++++++ main/store/state/index.js | 1 + package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/main/store/migrations/index.js b/main/store/migrations/index.js index 225e85b71..b59610501 100644 --- a/main/store/migrations/index.js +++ b/main/store/migrations/index.js @@ -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 } } diff --git a/main/store/state/index.js b/main/store/state/index.js index 84aaf3ba1..a663a34c9 100644 --- a/main/store/state/index.js +++ b/main/store/state/index.js @@ -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', diff --git a/package-lock.json b/package-lock.json index 23ce92395..753c10d5d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "frame", - "version": "0.6.3", + "version": "0.6.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "frame", - "version": "0.6.3", + "version": "0.6.4", "hasInstallScript": true, "license": "GPL-3.0", "dependencies": { diff --git a/package.json b/package.json index 5a236e1fa..319771306 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "frame", - "version": "0.6.3", + "version": "0.6.4", "description": "System-wide web3", "main": "compiled/main", "scripts": {