From a1d2faab2635db144e0dfc0654be54bff6d159c0 Mon Sep 17 00:00:00 2001 From: Morgan Seltzer Date: Mon, 28 Jun 2021 16:49:00 -0400 Subject: Layout change recognizes changed appointment space Before a layout change did not update the maximum number of appointments visible, until the config menu was exited. Now the maximum number of appointments are visible immediately after the layout screen is exited. Addresses GitHub issue #381 Signed-off-by: Morgan Seltzer Signed-off-by: Lukas Fleischer --- src/custom.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/custom.c') diff --git a/src/custom.c b/src/custom.c index e81a9ca..13570c6 100644 --- a/src/custom.c +++ b/src/custom.c @@ -1242,7 +1242,7 @@ void custom_config_main(void) old_layout = wins_layout(); custom_layout_config(); if (wins_layout() != old_layout) - wins_reset(); + wins_resize(); break; case 'G': case 'g': @@ -1268,7 +1268,11 @@ void custom_config_main(void) resize = 0; wins_reset(); } - + + /* needed to update app list */ + day_do_storage(0); + + /* wins_update(FLAG_ALL), but with custom bindings */ wins_set_bindings(bindings, ARRAY_SIZE(bindings)); wins_update_border(FLAG_ALL); wins_update_panels(FLAG_ALL); -- cgit v1.2.3-54-g00ecf