summaryrefslogtreecommitdiff
path: root/clients/bokftui.c
diff options
context:
space:
mode:
Diffstat (limited to 'clients/bokftui.c')
-rw-r--r--clients/bokftui.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/clients/bokftui.c b/clients/bokftui.c
index 50e5c3f..10824bf 100644
--- a/clients/bokftui.c
+++ b/clients/bokftui.c
@@ -4030,9 +4030,11 @@ static const char *const MAIN_ITEMS[] = {
static void dashboard(struct app *a)
{
for (;;) {
+ if (g_reload)
+ return;
int sel = menu("Bokf", MAIN_ITEMS, 10, 1);
snprintf(g_scene, sizeof g_scene, "%s", "dashboard");
- if (g_quit)
+ if (g_quit || g_reload)
return;
if (sel == -4) {
vouchers_new(a);
@@ -4567,6 +4569,8 @@ int main(int argc, char **argv)
}
free(auto_err);
if (!app.session[0] && login_screen(&app) != 0) {
+ if (g_reload)
+ do_reload(&app, self);
endwin();
return 0;
}
@@ -4574,6 +4578,8 @@ int main(int argc, char **argv)
if (want_org > 0) {
app.org = want_org;
} else if (select_org(&app) != 0) {
+ if (g_reload)
+ do_reload(&app, self);
endwin();
return 0;
}