mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Shopper: slightly improve plugin and manual
* improve manual (hopefully fixes fs#11988). Parts of the description are taken from fs#10820. * move ACTION_STD_CONTEXT from alternate select to alternate menu action, as not all targets have ACTION_STD_MENU * add menu entries for "Quit" and "Quit without saving" Change-Id: Iec86a1608756a899f9f9d7ec7d479838dfd1d95f
This commit is contained in:
parent
399904a916
commit
59928e6cf5
2 changed files with 82 additions and 4 deletions
|
|
@ -320,13 +320,13 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
continue;
|
||||
switch (button)
|
||||
{
|
||||
case ACTION_STD_CONTEXT:
|
||||
case ACTION_STD_OK:
|
||||
{
|
||||
changed |= toggle(cur_sel);
|
||||
break;
|
||||
}
|
||||
case ACTION_STD_MENU:
|
||||
case ACTION_STD_CONTEXT:
|
||||
{
|
||||
switch(view)
|
||||
{
|
||||
|
|
@ -338,7 +338,9 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
"Mark all items",
|
||||
category_string,
|
||||
"Revert to saved",
|
||||
"Show Playback Menu",);
|
||||
"Show Playback Menu",
|
||||
"Quit without saving",
|
||||
"Quit");
|
||||
|
||||
switch (rb->do_menu(&menu, NULL, NULL, false))
|
||||
{
|
||||
|
|
@ -394,6 +396,20 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
playback_control(NULL);
|
||||
break;
|
||||
}
|
||||
case 6:
|
||||
{
|
||||
/* Quit without saving */
|
||||
exit = 1;
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
{
|
||||
/* Save and quit */
|
||||
if (changed)
|
||||
save_changes();
|
||||
exit = 1;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
break;
|
||||
|
|
@ -409,7 +425,9 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
"Reset list",
|
||||
category_string,
|
||||
"Revert to saved",
|
||||
"Show Playback Menu",);
|
||||
"Show Playback Menu",
|
||||
"Quit without saving",
|
||||
"Quit");
|
||||
|
||||
switch (rb->do_menu(&menu, NULL, NULL, false))
|
||||
{
|
||||
|
|
@ -454,6 +472,20 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
playback_control(NULL);
|
||||
break;
|
||||
}
|
||||
case 5:
|
||||
{
|
||||
/* Quit without saving */
|
||||
exit = 1;
|
||||
break;
|
||||
}
|
||||
case 6:
|
||||
{
|
||||
/* Save and quit */
|
||||
if (changed)
|
||||
save_changes();
|
||||
exit = 1;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue