Disable separator option do not work... #2823

pull/2828/head
nicolargo 2024-06-09 10:08:16 +02:00
parent a6b7de8a4b
commit 4b071403da
3 changed files with 6 additions and 4 deletions

View File

@ -26,7 +26,7 @@ history_size=1200
# Options for all UIs # Options for all UIs
#-------------------- #--------------------
# Separator in the Curses and WebUI interface (between top and others plugins) # Separator in the Curses and WebUI interface (between top and others plugins)
separator=True #separator=True
# Set the the Curses and WebUI interface left menu plugin list (comma-separated) # Set the the Curses and WebUI interface left menu plugin list (comma-separated)
#left_menu=network,wifi,connections,ports,diskio,fs,irq,folders,raid,smart,sensors,now #left_menu=network,wifi,connections,ports,diskio,fs,irq,folders,raid,smart,sensors,now
# Limit the number of processes to display (in the WebUI) # Limit the number of processes to display (in the WebUI)

View File

@ -26,7 +26,7 @@ history_size=1200
# Options for all UIs # Options for all UIs
#-------------------- #--------------------
# Separator in the Curses and WebUI interface (between top and others plugins) # Separator in the Curses and WebUI interface (between top and others plugins)
separator=True #separator=True
# Set the the Curses and WebUI interface left menu plugin list (comma-separated) # Set the the Curses and WebUI interface left menu plugin list (comma-separated)
#left_menu=network,wifi,connections,ports,diskio,fs,irq,folders,raid,smart,sensors,now #left_menu=network,wifi,connections,ports,diskio,fs,irq,folders,raid,smart,sensors,now
# Limit the number of processes to display (in the WebUI) # Limit the number of processes to display (in the WebUI)

View File

@ -195,8 +195,10 @@ class _GlancesCurses:
"""Load the outputs section of the configuration file.""" """Load the outputs section of the configuration file."""
if config is not None and config.has_section('outputs'): if config is not None and config.has_section('outputs'):
logger.debug('Read the outputs section in the configuration file') logger.debug('Read the outputs section in the configuration file')
# Separator ? # Separator
self.args.enable_separator = config.get_bool_value('outputs', 'separator', default=True) self.args.enable_separator = config.get_bool_value(
'outputs', 'separator', default=self.args.enable_separator
)
# Set the left sidebar list # Set the left sidebar list
self._left_sidebar = config.get_list_value('outputs', 'left_menu', default=self._left_sidebar) self._left_sidebar = config.get_list_value('outputs', 'left_menu', default=self._left_sidebar)