settings: add option to clear state

Add an option to clear the currently saved playback state.

This does not clear playback entirely, but rather remove the saved
state so that it's not restored on the next startup. This is generally
the cleanest solution compared to allowing state restore to be toggled,
which opens up a bunch of race conditions.

Resolves #107.
This commit is contained in:
OxygenCobalt
2022-07-25 09:54:39 -06:00
parent 86a1815b1f
commit 6381815fd9
9 changed files with 36 additions and 10 deletions
+4
View File
@@ -102,6 +102,8 @@
<!-- Referring to playback state -->
<string name="lbl_state_saved">State saved</string>
<!-- Referring to playback state -->
<string name="lbl_state_wiped">State cleared</string>
<!-- Referring to playback state -->
<string name="lbl_state_restored">State restored</string>
<!-- Limit to 10 characters -->
@@ -181,6 +183,8 @@
<string name="set_content">Content</string>
<string name="set_save">Save playback state</string>
<string name="set_save_desc">Save the current playback state now</string>
<string name="set_wipe">Clear playback state</string>
<string name="set_wipe_desc">Wipe the previously saved playback state (if any)</string>
<string name="set_restore">Restore playback state</string>
<string name="set_restore_desc">Restore the previously saved playback state (if any)</string>
<string name="set_reindex">Reload music</string>