hub update

This commit is contained in:
2026-03-31 15:46:21 -05:00
parent 435a2ed5b2
commit b1bb53e562
3 changed files with 215 additions and 6 deletions

View File

@@ -125,7 +125,7 @@ class ServiceTile(Gtk.Box):
def _on_toggled(self, switch, state):
if not self._enabled:
return True # block the toggle
return True
systemctl.run_action("start" if state else "stop", self._unit, self._scope, self._method)
GLib.timeout_add(1500, self.refresh)
return False