Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions locales/de_DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"plugin.name": "Zähler",
"actions.counter.restore.title": "Werte wiederherstellen",
"actions.counter.long.dropdown.title": "Bei langem Druck",
"actions.counter.long.dropdown.substract": "Subtrahieren",
"actions.counter.long.dropdown.subtract": "Subtrahieren",
"actions.counter.long.dropdown.reset": "Zurücksetzen",
"actions.counter.file.title": "In Datei speichern",
"actions.counter.file.path": "Dateipfad",
"actions.counter.name": "Zähler"
}
}
4 changes: 2 additions & 2 deletions locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"plugin.name": "Counter",
"actions.counter.restore.title": "Restore value",
"actions.counter.long.dropdown.title": "On long press",
"actions.counter.long.dropdown.substract": "Substract",
"actions.counter.long.dropdown.substract": "Subtract",
"actions.counter.long.dropdown.reset": "Reset",
"actions.counter.file.title": "Save to file",
"actions.counter.file.path": "File path",
"actions.counter.name": "Counter"
}
}
10 changes: 5 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_config_rows(self) -> list:
self.restore_switch = Adw.SwitchRow(title=self.plugin_base.lm.get("actions.counter.restore.title"))

self.str_list = Gtk.StringList()
self.str_list.append(self.plugin_base.lm.get("actions.counter.long.dropdown.substract"))
self.str_list.append(self.plugin_base.lm.get("actions.counter.long.dropdown.subtract"))
self.str_list.append(self.plugin_base.lm.get("actions.counter.long.dropdown.reset"))

self.on_long_drop_down = Adw.ComboRow(title=self.plugin_base.lm.get("actions.counter.long.dropdown.title"), model=self.str_list)
Expand All @@ -75,7 +75,7 @@ def load_defaults(self) -> None:
self.save_to_file.set_active(settings.get("save_to_file", False))
self.file_path.set_text(settings.get("file_path", ""))

if settings.get("on_long_drop_down") == "Substract":
if settings.get("on_long_drop_down") == "Subtract":
self.on_long_drop_down.set_selected(0)
else:
self.on_long_drop_down.set_selected(1)
Expand All @@ -88,7 +88,7 @@ def on_restore_changed(self, switch, *args):
def on_long_drop_down_changed(self, combo, *args):
settings = self.get_settings()
if self.on_long_drop_down.get_selected() == 0:
settings["on_long_drop_down"] = "Substract"
settings["on_long_drop_down"] = "Subtract"
else:
settings["on_long_drop_down"] = "Revert"
self.set_settings(settings)
Expand All @@ -112,7 +112,7 @@ def event_callback(self, event: InputEvent, data: dict = None):

def on_long_press(self):
settings = self.get_settings()
if settings.get("on_long_drop_down") == "Substract":
if settings.get("on_long_drop_down") == "Subtract":
self.value -= 1
else:
self.value = 0
Expand Down Expand Up @@ -168,4 +168,4 @@ def init_locale_manager(self):
self.lm.set_to_os_default()

def get_selector_icon(self) -> Gtk.Widget:
return Gtk.Image(icon_name="network-transmit-receive")
return Gtk.Image(icon_name="network-transmit-receive")