From ac7f44ae2ecbfcb2f4ae4728f583fe61bdeb1b72 Mon Sep 17 00:00:00 2001 From: Floran Brutel Date: Sun, 10 Jan 2016 10:44:13 +0100 Subject: [PATCH] Fix show/hide top menu Hide and show were reversed --- glances/outputs/glances_curses.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/glances/outputs/glances_curses.py b/glances/outputs/glances_curses.py index 314e845a..95a68a1e 100644 --- a/glances/outputs/glances_curses.py +++ b/glances/outputs/glances_curses.py @@ -306,20 +306,22 @@ class _GlancesCurses(object): self.args.disable_mem = False self.args.disable_swap = False elif self.pressedkey == ord('5'): + logger.info("press 5") # '5' > Enable/disable top menu + logger.info(self.args.disable_top ) self.args.disable_top = not self.args.disable_top if self.args.disable_top: - self.args.disable_quicklook = False - self.args.disable_cpu = False - self.args.disable_mem = False - self.args.disable_swap = False - self.args.disable_load = False - else: self.args.disable_quicklook = True self.args.disable_cpu = True self.args.disable_mem = True self.args.disable_swap = True self.args.disable_load = True + else: + self.args.disable_quicklook = False + self.args.disable_cpu = False + self.args.disable_mem = False + self.args.disable_swap = False + self.args.disable_load = False elif self.pressedkey == ord('/'): # '/' > Switch between short/long name for processes self.args.process_short_name = not self.args.process_short_name