diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-12-15 03:07:18 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-12-16 01:44:05 -0500 |
commit | 28f768cb8421025c15f1970d2724d467f845f055 (patch) | |
tree | 9942124a1e8117605e10dd05a6dcf46b781872ae /apps/settings_list.c | |
parent | 31759c9e53761eac75a33d6d702d43c76d942ae8 (diff) | |
download | rockbox-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.c | 6 |
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) | |||
700 | { | 700 | { |
701 | if (get_current_activity() != ACTIVITY_QUICKSCREEN) | 701 | if (get_current_activity() != ACTIVITY_QUICKSCREEN) |
702 | { | 702 | { |
703 | if (get_hotkey_lang_id(var) == LANG_OPEN_PLUGIN) | 703 | if (get_hotkey(var)->action == HOTKEY_PLUGIN) |
704 | open_plugin_browse(ID2P(LANG_HOTKEY_WPS)); | 704 | open_plugin_browse(ID2P(LANG_HOTKEY_WPS)); |
705 | } | 705 | } |
706 | } | 706 | } |
@@ -710,12 +710,12 @@ static const char* hotkey_formatter(char* buffer, size_t buffer_size, int value, | |||
710 | (void)buffer; | 710 | (void)buffer; |
711 | (void)buffer_size; | 711 | (void)buffer_size; |
712 | (void)unit; | 712 | (void)unit; |
713 | return str(get_hotkey_lang_id(value)); | 713 | return str(get_hotkey(value)->lang_id); |
714 | } | 714 | } |
715 | static int32_t hotkey_getlang(int value, int unit) | 715 | static int32_t hotkey_getlang(int value, int unit) |
716 | { | 716 | { |
717 | (void)unit; | 717 | (void)unit; |
718 | return get_hotkey_lang_id(value); | 718 | return get_hotkey(value)->lang_id; |
719 | } | 719 | } |
720 | #endif /* HAVE_HOTKEY */ | 720 | #endif /* HAVE_HOTKEY */ |
721 | 721 | ||