From 28f768cb8421025c15f1970d2724d467f845f055 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Thu, 15 Dec 2022 03:07:18 -0500 Subject: onplay hotkey add flags idea here as discussed with chris_s is to allow flags in the hotkey_assignment struct to change how items are displayed Change-Id: Id4cf1d79fbe3ff8f5590b9a863fccf00ddd457f9 --- apps/settings_list.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/settings_list.c') diff --git a/apps/settings_list.c b/apps/settings_list.c index 4771306393..ae98ae0187 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c @@ -700,7 +700,7 @@ static void hotkey_callback(int var) { if (get_current_activity() != ACTIVITY_QUICKSCREEN) { - if (get_hotkey_lang_id(var) == LANG_OPEN_PLUGIN) + if (get_hotkey(var)->action == HOTKEY_PLUGIN) open_plugin_browse(ID2P(LANG_HOTKEY_WPS)); } } @@ -710,12 +710,12 @@ static const char* hotkey_formatter(char* buffer, size_t buffer_size, int value, (void)buffer; (void)buffer_size; (void)unit; - return str(get_hotkey_lang_id(value)); + return str(get_hotkey(value)->lang_id); } static int32_t hotkey_getlang(int value, int unit) { (void)unit; - return get_hotkey_lang_id(value); + return get_hotkey(value)->lang_id; } #endif /* HAVE_HOTKEY */ -- cgit v1.2.3