refactor(tracker): new closing mechanism logic

This commit is contained in:
2025-05-01 10:20:41 +03:00
parent 9f89c37956
commit 554a840982
9 changed files with 172 additions and 137 deletions
+5 -3
View File
@@ -436,10 +436,12 @@ func (m *Model) OpenSong() Action {
})
}
func (m *Model) Quit() Action {
func (m *Model) RequestQuit() Action {
return Allow(func() {
m.dialog = QuitChanges
m.completeAction(true)
if !m.quitted {
m.dialog = QuitChanges
m.completeAction(true)
}
})
}