summaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-07-11 17:08:41 -0700
committerlouie <lshprung@yahoo.com>2020-07-11 17:08:41 -0700
commit8f36e6816b5d5bd968f28e3c0acb269560d2796f (patch)
tree221717b1fd6f5a5df8bb0b23187d6f1106275bf0 /draw.c
parent8ec8e9d5dd37eac5266f8cd94ce946f23f436ef9 (diff)
Added hiding of empty groups
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c7
1 files changed, 5 insertions, 2 deletions
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();