config: Don't merge default options if a user option is defined.
This commit is contained in:
parent
360e8b4055
commit
eb80148692
@ -88,6 +88,14 @@ class KlipperScreenConfig:
|
|||||||
for include in includes:
|
for include in includes:
|
||||||
self._include_config("/".join(self.config_path.split("/")[:-1]),include)
|
self._include_config("/".join(self.config_path.split("/")[:-1]),include)
|
||||||
|
|
||||||
|
for i in ['menu __main','menu __print','menu __splashscreen','preheat']:
|
||||||
|
for j in self.defined_config.sections():
|
||||||
|
if j.startswith(i):
|
||||||
|
for k in list(self.config.sections()):
|
||||||
|
if k.startswith(i):
|
||||||
|
del self.config[k]
|
||||||
|
break
|
||||||
|
|
||||||
self.log_config(self.defined_config)
|
self.log_config(self.defined_config)
|
||||||
self.config.read_string(user_def)
|
self.config.read_string(user_def)
|
||||||
if saved_def != None:
|
if saved_def != None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user