Add profile > new window menu
This commit is contained in:
parent
354c0aa7dd
commit
fd20ce660a
9 changed files with 38 additions and 17 deletions
|
|
@ -20,7 +20,7 @@ function requestSplit(direction: 'VERTICAL' | 'HORIZONTAL') {
|
|||
effect: () => {
|
||||
const {ui, sessions} = getState();
|
||||
const activeUid = _activeUid ? _activeUid : sessions.activeUid;
|
||||
const profile = _profile ? _profile : activeUid ? sessions.sessions[activeUid].profile : undefined;
|
||||
const profile = _profile ? _profile : activeUid ? sessions.sessions[activeUid].profile : window.profileName;
|
||||
rpc.emit('new', {
|
||||
splitDirection: direction,
|
||||
cwd: ui.cwd,
|
||||
|
|
@ -51,7 +51,7 @@ export function requestTermGroup(_activeUid: string | undefined, _profile: strin
|
|||
const {ui, sessions} = getState();
|
||||
const {cwd} = ui;
|
||||
const activeUid = _activeUid ? _activeUid : sessions.activeUid;
|
||||
const profile = _profile ? _profile : activeUid ? sessions.sessions[activeUid].profile : undefined;
|
||||
const profile = _profile ? _profile : activeUid ? sessions.sessions[activeUid].profile : window.profileName;
|
||||
rpc.emit('new', {
|
||||
isNewGroup: true,
|
||||
cwd,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue