Skip to content

Commit

Permalink
Remove UI pages after closing file
Browse files Browse the repository at this point in the history
  • Loading branch information
oxplot committed Mar 29, 2022
1 parent 07ab67f commit 483ab77
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,12 @@ func closeFile() bool {
}
}

pageFlow.GetChildren().Foreach(func(i any) {
if c, ok := i.(gtk.IWidget); ok {
pageFlow.Remove(c)
}
})

annotSinceLastSave = false
resetUIToStart()
sessMu.Lock()
Expand Down

0 comments on commit 483ab77

Please sign in to comment.