Compare commits

..

2 Commits

Author SHA1 Message Date
CODeRUS
fb460ab687 Merge 81f409c5ca into 4978f22101 2025-02-09 03:13:36 +07:00
Andrey Kozhevnikov
81f409c5ca feature: save and select kconfig
Signed-off-by: Andrey Kozhevnikov <coderusinbox@gmail.com>
2025-02-09 03:13:27 +07:00

View File

@@ -107,7 +107,7 @@ class KlipperKConfigMenu(BaseMenu):
selection: str | None = kwargs.get("opt_data", None) selection: str | None = kwargs.get("opt_data", None)
if selection is None: if selection is None:
raise Exception("opt_data is None") raise Exception("opt_data is None")
if not path.isfile(selection): if not path.isfile(selection) and selection != self.kconfig_default:
raise Exception("opt_data does not exists") raise Exception("opt_data does not exists")
self.kconfig = selection self.kconfig = selection