mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-07 08:35:11 -04:00
Added configuration editor
This commit is contained in:
parent
8aec40fba2
commit
0783b21272
4 changed files with 76 additions and 6 deletions
|
@ -61,6 +61,7 @@ class TextUI:
|
|||
intro_timeout = self.app.config["textui"]["intro_time"]
|
||||
colormode = self.app.config["textui"]["colormode"]
|
||||
theme = self.app.config["textui"]["theme"]
|
||||
mouse_enabled = self.app.config["textui"]["mouse_enabled"]
|
||||
|
||||
palette = THEMES[theme]
|
||||
|
||||
|
@ -75,7 +76,7 @@ class TextUI:
|
|||
else:
|
||||
initial_widget = self.main_display.widget
|
||||
|
||||
self.loop = urwid.MainLoop(initial_widget, screen=self.screen)
|
||||
self.loop = urwid.MainLoop(initial_widget, screen=self.screen, handle_mouse=mouse_enabled)
|
||||
|
||||
if intro_timeout > 0:
|
||||
self.loop.set_alarm_in(intro_timeout, self.display_main)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue