From dcac2c616f7e87ac3f444ecc3893107f7a91ef22 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sun, 21 Nov 2021 16:30:38 +0000 Subject: 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 --- apps/gui/option_select.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'apps/gui/option_select.h') 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 @@ #include "screen_access.h" #include "settings.h" -#if defined (HAVE_SCROLLWHEEL) && !defined(FIIO_M3K) -/* Define this if your target makes sense to have - smaller values at the top of the list increasing down the list */ -#define ASCENDING_INT_SETTINGS -#endif +enum { + LIST_ORDER_DESCENDING = 0, + LIST_ORDER_ASCENDING = 1, +}; bool option_screen(const struct settings_list *setting, struct viewport parent[NB_SCREENS], -- cgit v1.2.3