screen: fix restart #667

This commit is contained in:
alfrix 2022-07-04 13:30:16 -03:00
parent 92335b78a0
commit 9833b887ad

View File

@ -440,7 +440,7 @@ class KlipperScreen(Gtk.Window):
if response_id == Gtk.ResponseType.OK: if response_id == Gtk.ResponseType.OK:
logging.debug("Restarting") logging.debug("Restarting")
# This can be removed after a grace period # 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": if service is not None and service != "KlipperScreen":
self.show_popup_message("Error: option \"service\" is not supported anymore") self.show_popup_message("Error: option \"service\" is not supported anymore")
# ^^^ # ^^^