forked from CreatBot/CreatBotKlipperScreen
config: fix menu and preheat merge bugs
it's now possible to define a custom menu without the need to copy all the menu entries from defaults.conf if you want to define all the entries, disable the default menu with 'use_default_menu: False' under [main] if a preheat is defined then defaults are dropped in favor of keeping only user defines, this behaviour has not changed, and it's intended since the user may not want any of the defaults; but it's now possible to put preheat options in an include file. fixes #530 fixes #497 fixes #408
This commit is contained in:
@@ -39,6 +39,11 @@ service: KlipperScreen
|
||||
|
||||
# If multiple printers are defined, this can be set the name of the one to show at startup.
|
||||
default_printer: Ender 3 Pro
|
||||
|
||||
# To define a full set of custom menues (instead of merging user entries with default entries)
|
||||
# set this to False. See Menu section below.
|
||||
use_default_menu: True
|
||||
|
||||
```
|
||||
|
||||
## Printer Options
|
||||
@@ -178,8 +183,9 @@ KlipperScreen will search for a configuration file in the following order:
|
||||
If you need a custom location for the configuration file, you can add -c or --configfile to the systemd file and specify
|
||||
the location of your configuration file.
|
||||
|
||||
If one of those files are found, it will be used over the default configuration. The default configuration will be
|
||||
merged with the custom configuration, so if you do not define any menus the default menus will be used.
|
||||
If one of those files are found, it will be merged with the default configuration.
|
||||
Default Preheat options will be discarded if a custom preheat is found.
|
||||
If include files are defined then, they will be merged first.
|
||||
|
||||
The default config is included here: (do not edit use as reference)
|
||||
_${KlipperScreen_Directory}/ks_includes/default.conf_
|
||||
|
Reference in New Issue
Block a user