refactor(tracker): new closing mechanism logic

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-04-30 22:42:35 +03:00
parent 9f89c37956
commit 554a840982
9 changed files with 172 additions and 137 deletions

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)
}
})
}