Skip to content

Commit 03a4dcc

Browse files
committed
fix
1 parent a594f99 commit 03a4dcc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lib/split-layout.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ export class SplitLayout {
3838
}
3939

4040
public set root(value: SplitNode | null) {
41+
if (typeof value === "string") {
42+
this.#focused = value;
43+
}
44+
4145
layout.state.root = value;
4246
}
4347

src/routes/(main)/channels/split/+page.svelte

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
app.focused = null;
99
settings.state.lastJoined = null;
1010
11-
if (typeof app.splits.root === "string") {
12-
app.splits.focused = app.splits.root;
13-
}
14-
1511
async function navigateSplit(event: KeyboardEvent) {
1612
if (!app.splits.focused || !(event.metaKey || event.ctrlKey)) return;
1713

0 commit comments

Comments
 (0)