Skip to content

Commit

Permalink
fix: pane factory
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Oct 11, 2024
1 parent a0f5bf5 commit 9f844fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/modules/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function openSettingsFile() {

async function openUserFile(file: string, example?: string) {
const filePath = await ipcRenderer.invoke('prepare-user-file', file, example)
openUserFile(filePath)
openFile(filePath)
}

function writeUserFile(file: string, content?: string) {
Expand Down
2 changes: 1 addition & 1 deletion src/api/modules/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function createPaneTab(pane: TerminalTabPane, info?: Partial<TerminalTab>) {
title: '',
cwd: '',
...info,
...pane.factory?.(),
...pane.factory?.(info),
pane: markRaw(pane),
} as TerminalTab)
}
Expand Down

0 comments on commit 9f844fe

Please sign in to comment.