fixed profile hotkeys (fixes #995)

This commit is contained in:
Eugene Pankov 2019-06-03 17:47:35 +02:00
parent 4deee0d6c1
commit 4033885eb7

View File

@ -165,7 +165,7 @@ export default class TerminalModule {
hostApp.newWindow()
}
if (hotkey.startsWith('profile.')) {
let profiles = await config.store.terminal.getProfiles()
let profiles = await terminal.getProfiles()
let profile = profiles.find(x => slug(x.name).toLowerCase() === hotkey.split('.')[1])
if (profile) {
terminal.openTabWithOptions(profile.sessionOptions)