summaryrefslogtreecommitdiffstats
path: root/apps/settings_list.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-12-15 03:07:18 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-12-16 01:44:05 -0500
commit28f768cb8421025c15f1970d2724d467f845f055 (patch)
tree9942124a1e8117605e10dd05a6dcf46b781872ae /apps/settings_list.c
parent31759c9e53761eac75a33d6d702d43c76d942ae8 (diff)
downloadrockbox-28f768cb8421025c15f1970d2724d467f845f055.tar.gz
rockbox-28f768cb8421025c15f1970d2724d467f845f055.zip
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
Diffstat (limited to 'apps/settings_list.c')
-rw-r--r--apps/settings_list.c6
1 files changed, 3 insertions, 3 deletions
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 */