summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/quickscreen.c4
-rw-r--r--apps/lang/english.lang17
-rw-r--r--apps/menus/settings_menu.c7
-rw-r--r--apps/settings.h3
-rw-r--r--apps/settings_list.c2
5 files changed, 33 insertions, 0 deletions
diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c
index acef2c32a0..965fe67a4c 100644
--- a/apps/gui/quickscreen.c
+++ b/apps/gui/quickscreen.c
@@ -38,6 +38,7 @@
38#include "list.h" 38#include "list.h"
39#include "option_select.h" 39#include "option_select.h"
40#include "debug.h" 40#include "debug.h"
41#include "shortcuts.h"
41 42
42 /* 1 top, 1 bottom, 2 on either side, 1 for the icons 43 /* 1 top, 1 bottom, 2 on either side, 1 for the icons
43 * if enough space, top and bottom have 2 lines */ 44 * if enough space, top and bottom have 2 lines */
@@ -391,6 +392,9 @@ bool quick_screen_quick(int button_enter)
391 bool oldshuffle = global_settings.playlist_shuffle; 392 bool oldshuffle = global_settings.playlist_shuffle;
392 int oldrepeat = global_settings.repeat_mode; 393 int oldrepeat = global_settings.repeat_mode;
393 394
395 if (global_settings.shortcuts_replaces_qs)
396 return do_shortcut_menu(NULL);
397
394 qs.items[QUICKSCREEN_TOP] = 398 qs.items[QUICKSCREEN_TOP] =
395 get_setting(global_settings.qs_items[QUICKSCREEN_TOP], NULL); 399 get_setting(global_settings.qs_items[QUICKSCREEN_TOP], NULL);
396 qs.items[QUICKSCREEN_LEFT] = 400 qs.items[QUICKSCREEN_LEFT] =
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index d428bee232..e1f68895c7 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -13007,3 +13007,20 @@
13007 *: "Constrain Auto-Change" 13007 *: "Constrain Auto-Change"
13008 </voice> 13008 </voice>
13009</phrase> 13009</phrase>
13010<phrase>
13011 id: LANG_USE_SHORTCUTS_INSTEAD_OF_QS
13012 desc: in settings_menu.
13013 user: core
13014 <source>
13015 *: none
13016 quickscreen: "Use Shortcuts Menu Instead of Quick Screen"
13017 </source>
13018 <dest>
13019 *: none
13020 quickscreen: "Use Shortcuts Menu Instead of Quick Screen"
13021 </dest>
13022 <voice>
13023 *: none
13024 quickscreen: "Use Shortcuts Menu Instead of Quick Screen"
13025 </voice>
13026</phrase>
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index 659a7f2fbb..0e3e861834 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -297,6 +297,10 @@ MENUITEM_SETTING(buttonlight_brightness, &global_settings.buttonlight_brightness
297MENUITEM_SETTING(touchpad_sensitivity, &global_settings.touchpad_sensitivity, NULL); 297MENUITEM_SETTING(touchpad_sensitivity, &global_settings.touchpad_sensitivity, NULL);
298#endif 298#endif
299 299
300#ifdef HAVE_QUICKSCREEN
301MENUITEM_SETTING(shortcuts_replaces_quickscreen, &global_settings.shortcuts_replaces_qs, NULL);
302#endif
303
300MAKE_MENU(system_menu, ID2P(LANG_SYSTEM), 304MAKE_MENU(system_menu, ID2P(LANG_SYSTEM),
301 0, Icon_System_menu, 305 0, Icon_System_menu,
302#if (BATTERY_CAPACITY_INC > 0) || (BATTERY_TYPES_COUNT > 1) 306#if (BATTERY_CAPACITY_INC > 0) || (BATTERY_TYPES_COUNT > 1)
@@ -306,6 +310,9 @@ MAKE_MENU(system_menu, ID2P(LANG_SYSTEM),
306 &disk_menu, 310 &disk_menu,
307#endif 311#endif
308 &limits_menu, 312 &limits_menu,
313#ifdef HAVE_QUICKSCREEN
314 &shortcuts_replaces_quickscreen,
315#endif
309#ifdef HAVE_MORSE_INPUT 316#ifdef HAVE_MORSE_INPUT
310 &morse_input, 317 &morse_input,
311#endif 318#endif
diff --git a/apps/settings.h b/apps/settings.h
index 777c7dbefe..fb562c9191 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -827,6 +827,9 @@ struct user_settings
827 char start_directory[MAX_PATHNAME+1]; 827 char start_directory[MAX_PATHNAME+1];
828 /* Has the root been customized from the .cfg file? false = no, true = loaded from cfg */ 828 /* Has the root been customized from the .cfg file? false = no, true = loaded from cfg */
829 bool root_menu_customized; 829 bool root_menu_customized;
830#ifdef HAVE_QUICKSCREEN
831 bool shortcuts_replaces_qs;
832#endif
830}; 833};
831 834
832/** global variables **/ 835/** global variables **/
diff --git a/apps/settings_list.c b/apps/settings_list.c
index 5acebef2a5..6780c78ed3 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -1830,6 +1830,8 @@ const struct settings_list settings[] = {
1830 NULL, "qs bottom", 1830 NULL, "qs bottom",
1831 qs_load_from_cfg, qs_write_to_cfg, 1831 qs_load_from_cfg, qs_write_to_cfg,
1832 qs_is_changed, qs_set_default), 1832 qs_is_changed, qs_set_default),
1833 OFFON_SETTING(0, shortcuts_replaces_qs, LANG_USE_SHORTCUTS_INSTEAD_OF_QS,
1834 false, "shortcuts instead of quickscreen", NULL),
1833#endif 1835#endif
1834#ifdef HAVE_SPEAKER 1836#ifdef HAVE_SPEAKER
1835 OFFON_SETTING(0, speaker_enabled, LANG_ENABLE_SPEAKER, false, "speaker", 1837 OFFON_SETTING(0, speaker_enabled, LANG_ENABLE_SPEAKER, false, "speaker",