Skip to content

Commit 7aa2ea0

Browse files
authored
Merge pull request #14 from kranklab/sleek-pike
Show worktree name in dev window title
2 parents 88ff961 + 2650959 commit 7aa2ea0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ function createWindow(): void {
5050
})
5151

5252
mainWindow.on('ready-to-show', () => {
53+
if (is.dev) {
54+
const worktreeMatch = process.cwd().match(/\.konductor\/worktrees\/([^/]+)/)
55+
if (worktreeMatch) {
56+
mainWindow!.setTitle(`Konductor [${worktreeMatch[1]}]`)
57+
}
58+
}
5359
mainWindow!.show()
5460
})
5561

0 commit comments

Comments
 (0)