Skip to content

Commit 483ab77

Browse files
committed
Remove UI pages after closing file
1 parent 07ab67f commit 483ab77

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,12 @@ func closeFile() bool {
349349
}
350350
}
351351

352+
pageFlow.GetChildren().Foreach(func(i any) {
353+
if c, ok := i.(gtk.IWidget); ok {
354+
pageFlow.Remove(c)
355+
}
356+
})
357+
352358
annotSinceLastSave = false
353359
resetUIToStart()
354360
sessMu.Lock()

0 commit comments

Comments
 (0)