From 8f36e6816b5d5bd968f28e3c0acb269560d2796f Mon Sep 17 00:00:00 2001 From: louie Date: Sat, 11 Jul 2020 17:08:41 -0700 Subject: Added hiding of empty groups --- draw.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'draw.c') diff --git a/draw.c b/draw.c index 96b4525..a3f8a87 100644 --- a/draw.c +++ b/draw.c @@ -48,8 +48,11 @@ int main(int argc, char **argv){ //Fill Groups cfg_interp(cfg_path); //read the contents of the cfg file - g = get_groups(); //retrieve results of previous function - g_count = get_gcount(g); //retrieve number of groups in g + + //Remove Empty Groups from the Array + clean_groups(); + g = get_groups(); //retrieve results of cfg_interp + g_count = get_gcount(g); //retrieve number of groups in g (only do this after removing empty groups) initscr(); cbreak(); -- cgit