summaryrefslogtreecommitdiff
path: root/apps/gui/option_select.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-11-21 16:30:38 +0000
committerAidan MacDonald <amachronic@protonmail.com>2021-12-11 01:13:22 +0000
commitdcac2c616f7e87ac3f444ecc3893107f7a91ef22 (patch)
tree23685350f1eae00285e2e5f9230cdbda1328bb66 /apps/gui/option_select.h
parenta3684e090ea637168c2542c7b4eaade756de3fe3 (diff)
downloadrockbox-dcac2c616f7e87ac3f444ecc3893107f7a91ef22.tar.gz
rockbox-dcac2c616f7e87ac3f444ecc3893107f7a91ef22.zip
Add setting for numeric list sort order
The sort order of numeric lists can now be changed with the new "List Order" setting. It defaults to ascending for most scrollwheel targets and descending for all others, matching the old hardcoded behavior. Change-Id: I4866f04ec5995158edf9e40badf7f661b3ddea81
Diffstat (limited to 'apps/gui/option_select.h')
-rw-r--r--apps/gui/option_select.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/gui/option_select.h b/apps/gui/option_select.h
index 476e7b81bd..104e86f64d 100644
--- a/apps/gui/option_select.h
+++ b/apps/gui/option_select.h
@@ -25,11 +25,10 @@
25#include "screen_access.h" 25#include "screen_access.h"
26#include "settings.h" 26#include "settings.h"
27 27
28#if defined (HAVE_SCROLLWHEEL) && !defined(FIIO_M3K) 28enum {
29/* Define this if your target makes sense to have 29 LIST_ORDER_DESCENDING = 0,
30 smaller values at the top of the list increasing down the list */ 30 LIST_ORDER_ASCENDING = 1,
31#define ASCENDING_INT_SETTINGS 31};
32#endif
33 32
34bool option_screen(const struct settings_list *setting, 33bool option_screen(const struct settings_list *setting,
35 struct viewport parent[NB_SCREENS], 34 struct viewport parent[NB_SCREENS],