mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 19:53:18 -04:00
Use SBS title in delete confirmation screens
When deleting files or directories, you will now see the path's basename in the previously empty title of an SBS, making it a bit easier to immediately know whether you've selected the correct item. Matching titles were also added everywhere else that confirm_delete_yesno is used. The full path of the item is still displayed below, and continues to scroll, so that themes without a title, such as the default cabbiev2, will look the same. Change-Id: I32422cfbbf6e680f58456237380176617789cac3
This commit is contained in:
parent
d1c3e3b08b
commit
399230e9ec
10 changed files with 52 additions and 15 deletions
|
|
@ -646,7 +646,8 @@ static void close_playlist_viewer(void)
|
|||
if (viewer.num_tracks && yesno_pop(ID2P(LANG_SAVE_CHANGES)))
|
||||
save_playlist_screen(viewer.playlist);
|
||||
else if (!viewer.num_tracks &&
|
||||
confirm_delete_yesno(viewer.playlist->filename) == YESNO_YES)
|
||||
confirm_delete_yesno(viewer.playlist->filename,
|
||||
viewer.title) == YESNO_YES)
|
||||
{
|
||||
remove(viewer.playlist->filename);
|
||||
reload_directory();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue