feat(tracker): show * next to the file path to indicate unsaved changes

Related to #224.
This commit is contained in:
5684185+vsariola@users.noreply.github.com
2026-03-06 15:01:30 +02:00
parent 4cb9308af3
commit c52c074aa1
2 changed files with 19 additions and 7 deletions

View File

@ -19,6 +19,9 @@ func (m *Model) Song() *SongModel { return (*SongModel)(m) }
type SongModel Model
// ChangesSinceSave returns a Bool representing whether the current song has unsaved
func (m *SongModel) ChangedSinceSave() bool { return m.d.ChangedSinceSave }
// FilePath returns a String representing the file path of the current song.
func (m *SongModel) FilePath() String { return MakeString((*songFilePath)(m)) }