Commit e6ba3b5
authored
fix: delete underlying FIT file when deleting a workout from history (#4788)
Deleting a workout only removed its row from the SQLite database, leaving
the .fit file on disk. FitDatabaseProcessor::processDirectory() rescans
that directory on every app start and re-imports any file whose hash isn't
already in the DB, so deleted workouts silently reappeared after restart.
Verified on-device: end 3 workouts, delete one, restart the app -> before
this fix it came back, after this fix it stays deleted.1 parent 5e08fcb commit e6ba3b5
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
0 commit comments