mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-08 17:17:56 +08:00
fix(specs): Add check when patching Google Inbox keymaps from 07d218d
- This was preventing the specs from running
This commit is contained in:
parent
3cdd831e22
commit
3086806446
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class KeymapManager extends AtomKeymap
|
||||||
templateKeymapPath = null
|
templateKeymapPath = null
|
||||||
reloadTemplateKeymap = =>
|
reloadTemplateKeymap = =>
|
||||||
@removeBindingsFromSource(templateKeymapPath) if templateKeymapPath
|
@removeBindingsFromSource(templateKeymapPath) if templateKeymapPath
|
||||||
templateFile = NylasEnv.config.get(templateConfigKey).replace("GoogleInbox", "Inbox by Gmail")
|
templateFile = NylasEnv.config.get(templateConfigKey)?.replace("GoogleInbox", "Inbox by Gmail")
|
||||||
if templateFile
|
if templateFile
|
||||||
templateKeymapPath = fs.resolve(path.join(@resourcePath, 'keymaps', 'templates'), templateFile, ['cson', 'json'])
|
templateKeymapPath = fs.resolve(path.join(@resourcePath, 'keymaps', 'templates'), templateFile, ['cson', 'json'])
|
||||||
if fs.existsSync(templateKeymapPath)
|
if fs.existsSync(templateKeymapPath)
|
||||||
|
|
Loading…
Reference in a new issue