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/menus/display_menu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/menus/display_menu.c') diff --git a/apps/menus/display_menu.c b/apps/menus/display_menu.c index 7a4d81284a..ea3fdc0858 100644 --- a/apps/menus/display_menu.c +++ b/apps/menus/display_menu.c @@ -366,6 +366,7 @@ static int listwraparound_callback(int action, } MENUITEM_SETTING(list_wraparound, &global_settings.list_wraparound, listwraparound_callback); +MENUITEM_SETTING(list_order, &global_settings.list_order, NULL); MAKE_MENU(scroll_settings_menu, ID2P(LANG_SCROLL_MENU), 0, Icon_NOICON, &scroll_speed, &scroll_delay, @@ -377,6 +378,7 @@ MAKE_MENU(scroll_settings_menu, ID2P(LANG_SCROLL_MENU), 0, Icon_NOICON, &offset_out_of_view, &screen_scroll_step, &scroll_paginated, &list_wraparound, + &list_order, #ifndef HAVE_WHEEL_ACCELERATION &list_accel_start_delay, &list_accel_wait #endif -- cgit v1.2.3