Commit e38997b5 authored by Roman Alifanov's avatar Roman Alifanov

fix

parent a797319b
...@@ -53,6 +53,7 @@ class Setting: ...@@ -53,6 +53,7 @@ class Setting:
if isinstance(self.map, list) and 'choice' in self.type: if isinstance(self.map, list) and 'choice' in self.type:
self.map = { self.map = {
item.title(): item for item in self.map item.title(): item for item in self.map
if item is not None
} }
......
...@@ -20,7 +20,7 @@ class ServiceNotStartedDialog(Adw.AlertDialog): ...@@ -20,7 +20,7 @@ class ServiceNotStartedDialog(Adw.AlertDialog):
self.add_response("yes", _("Yes")) self.add_response("yes", _("Yes"))
self.add_response("no", _("No")) self.add_response("no", _("No"))
self.connect('response', on_response) self.connect('response', self.on_response)
def on_response(self, dialog, response): def on_response(self, dialog, response):
if response == "yes": if response == "yes":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment