screen: fix restart #667

This commit is contained in:
alfrix committed 2022-07-04 13:30:16 -03:00
1 parent 92335b78a0
commit 9833b887ad
1 file changed
+1 -1
+1 -1
View File
@@ -440,7 +440,7 @@ class KlipperScreen(Gtk.Window):
if response_id == Gtk.ResponseType.OK:
logging.debug("Restarting")
# This can be removed after a grace period
service = self._config.get_main_config_option('service')
service = self._config.get_main_config().get('service')
if service is not None and service != "KlipperScreen":
self.show_popup_message("Error: option \"service\" is not supported anymore")
# ^^^