mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-18 02:19:57 +00: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()
|
hostApp.newWindow()
|
||||||
}
|
}
|
||||||
if (hotkey.startsWith('profile.')) {
|
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])
|
let profile = profiles.find(x => slug(x.name).toLowerCase() === hotkey.split('.')[1])
|
||||||
if (profile) {
|
if (profile) {
|
||||||
terminal.openTabWithOptions(profile.sessionOptions)
|
terminal.openTabWithOptions(profile.sessionOptions)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user