summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/gwps.c2
-rw-r--r--apps/gui/list.c3
-rw-r--r--apps/gui/viewport.c4
-rw-r--r--apps/gui/yesno.c3
4 files changed, 2 insertions, 10 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c
index 1f90077baa..c1e7606634 100644
--- a/apps/gui/gwps.c
+++ b/apps/gui/gwps.c
@@ -211,8 +211,6 @@ long gui_wps_show(void)
211 if (button != ACTION_NONE) { 211 if (button != ACTION_NONE) {
212 break; 212 break;
213 } 213 }
214 else if (button == SYS_FOURHERTZ)
215 default_event_handler(button);
216 peak_meter_peek(); 214 peak_meter_peek();
217 sleep(0); /* Sleep until end of current tick. */ 215 sleep(0); /* Sleep until end of current tick. */
218 216
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 662496d40d..04bd7e4c3f 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -643,9 +643,6 @@ bool gui_synclist_do_button(struct gui_synclist * lists,
643 643
644 switch (action) 644 switch (action)
645 { 645 {
646 case SYS_FOURHERTZ:
647 default_event_handler(action);
648 return true;
649 case ACTION_REDRAW: 646 case ACTION_REDRAW:
650 gui_synclist_draw(lists); 647 gui_synclist_draw(lists);
651 return true; 648 return true;
diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c
index 9a0657d510..76fb36b940 100644
--- a/apps/gui/viewport.c
+++ b/apps/gui/viewport.c
@@ -92,12 +92,12 @@ bool viewportmanager_set_statusbar(bool enabled)
92 bool old = statusbar_enabled; 92 bool old = statusbar_enabled;
93 if (enabled && global_settings.statusbar) 93 if (enabled && global_settings.statusbar)
94 { 94 {
95 add_event(GUI_EVENT_FOURHERTZ, false, viewportmanager_draw_statusbars); 95 add_event(GUI_EVENT_ACTIONUPDATE, false, viewportmanager_draw_statusbars);
96 gui_syncstatusbar_draw(&statusbars, true); 96 gui_syncstatusbar_draw(&statusbars, true);
97 } 97 }
98 else 98 else
99 { 99 {
100 remove_event(GUI_EVENT_FOURHERTZ, viewportmanager_draw_statusbars); 100 remove_event(GUI_EVENT_ACTIONUPDATE, viewportmanager_draw_statusbars);
101 } 101 }
102 statusbar_enabled = enabled; 102 statusbar_enabled = enabled;
103 return old; 103 return old;
diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c
index 1e597f2fcb..756d267c63 100644
--- a/apps/gui/yesno.c
+++ b/apps/gui/yesno.c
@@ -167,9 +167,6 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message,
167 case SYS_CHARGER_DISCONNECTED: 167 case SYS_CHARGER_DISCONNECTED:
168 /* ignore some SYS events that can happen */ 168 /* ignore some SYS events that can happen */
169 continue; 169 continue;
170 case SYS_FOURHERTZ: /* make sure this one works as expected */
171 default_event_handler(button);
172 break;
173 default: 170 default:
174 if(default_event_handler(button) == SYS_USB_CONNECTED) 171 if(default_event_handler(button) == SYS_USB_CONNECTED)
175 return(YESNO_USB); 172 return(YESNO_USB);