mirror of
https://github.com/Eugeny/tabby.git
synced 2025-01-18 14:04:17 +08:00
fixed profile hotkeys (fixes #995)
This commit is contained in:
parent
4deee0d6c1
commit
4033885eb7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user