refactor: change default value for side shortcut to false
new users can find it overwhelming, and even some very experienced users i've talked to never touch this for those reasons disabled by default make sense
This commit is contained in:
1 parent
35c26ba4d4
commit
3a3fea96d8
2 files changed
+2
-2
No files matched your search
@@ -280,7 +280,7 @@ class KlipperScreenConfig:
|
||||
"value": "True"}},
|
||||
{"side_macro_shortcut": {
|
||||
"section": "main", "name": _("Macro shortcut on sidebar"), "type": "binary",
|
||||
"value": "True", "callback": screen.toggle_shortcut}},
|
||||
"value": "False", "callback": screen.toggle_shortcut}},
|
||||
{"font_size": {
|
||||
"section": "main", "name": _("Font Size"), "type": "dropdown",
|
||||
"tooltip": _("Inversely affects the icon size"),
|
||||
|
||||
@@ -339,7 +339,7 @@ class BasePanel(ScreenPanel):
|
||||
def show_shortcut(self, show=True):
|
||||
show = (
|
||||
show
|
||||
and self._config.get_main_config().getboolean('side_macro_shortcut', True)
|
||||
and self._config.get_main_config().getboolean('side_macro_shortcut', False)
|
||||
and self._printer.get_printer_status_data()["printer"]["gcode_macros"]["count"] > 0
|
||||
and self._screen._cur_panels[-1] != 'printer_select'
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user