mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-25 08:33:22 +03:00
Fix show/hide top menu
Hide and show were reversed
This commit is contained in:
parent
f2fb8d982b
commit
ac7f44ae2e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user