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:
@@ -24,6 +24,7 @@
|
||||
<string name="set_key_repeat_pause" translatable="false">KEY_LOOP_PAUSE</string>
|
||||
|
||||
<string name="set_key_save_state" translatable="false">auxio_save_state</string>
|
||||
<string name="set_key_wipe_state" translatable="false">auxio_wipe_state</string>
|
||||
<string name="set_key_restore_state" translatable="false">auxio_restore_state</string>
|
||||
<string name="set_key_reindex" translatable="false">auxio_reindex</string>
|
||||
<string name="set_key_music_dirs" translatable="false">auxio_music_dirs</string>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user