From 2002543dbedcc1666d02d11fbde55f794d692bb7 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 9 Mar 2021 22:44:45 +0200 Subject: Mobile: Revising phone-style dialogs Sliding panels and left-edge swipes. --- src/app.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/app.c') diff --git a/src/app.c b/src/app.c index 9f5eef09..32255675 100644 --- a/src/app.c +++ b/src/app.c @@ -1218,12 +1218,14 @@ static void updateDropdownSelection_(iLabelWidget *dropButton, const char *selec } static void updateColorThemeButton_(iLabelWidget *button, int theme) { + if (!button) return; // const char *mode = strstr(cstr_String(id_Widget(as_Widget(button))), ".dark") // ? "dark" : "light"; updateDropdownSelection_(button, format_CStr(".set arg:%d", theme)); } static void updateFontButton_(iLabelWidget *button, int font) { + if (!button) return; updateDropdownSelection_(button, format_CStr(".set arg:%d", font)); } -- cgit v1.2.3