mirror of
https://github.com/vsariola/sointu.git
synced 2026-03-07 22:40:20 -05:00
feat(tracker): show * next to the file path to indicate unsaved changes
Related to #224.
This commit is contained in:
parent
4cb9308af3
commit
c52c074aa1
@ -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)) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user