Fixed mouse_enabled in config

This commit is contained in:
Mark Qvist 2021-07-02 15:34:08 +02:00
parent 7dcfed4e5c
commit 84e616a3ec

View File

@ -250,7 +250,7 @@ class NomadNetworkApp:
if not "mouse_enabled" in self.config["textui"]: if not "mouse_enabled" in self.config["textui"]:
self.config["textui"]["mouse_enabled"] = True self.config["textui"]["mouse_enabled"] = True
else: else:
self.config["textui"]["animation_interval"] = self.config["textui"].as_bool("mouse_enabled") self.config["textui"]["mouse_enabled"] = self.config["textui"].as_bool("mouse_enabled")
if not "animation_interval" in self.config["textui"]: if not "animation_interval" in self.config["textui"]:
self.config["textui"]["animation_interval"] = 1 self.config["textui"]["animation_interval"] = 1
@ -330,7 +330,7 @@ destination = file
[client] [client]
enable_client = Yes enable_client = yes
user_interface = text user_interface = text
[textui] [textui]
@ -375,6 +375,6 @@ editor = editor
[node] [node]
enable_node = No enable_node = no
'''.splitlines() '''.splitlines()