allow 2 different screen timeouts, one while printing the other if not

closes #311
This commit is contained in:
alfrix
2024-04-27 15:03:24 -03:00
parent 629ca41b88
commit 750a7ee0b5
3 changed files with 43 additions and 19 deletions

View File

@@ -159,7 +159,7 @@ class Printer:
self.state = state
if self.state_callbacks[state] is not None:
logging.debug(f"Adding callback for state: {state}")
GLib.idle_add(self.state_cb, self.state_callbacks[state])
GLib.idle_add(self.state_cb, state, self.state_callbacks[state])
def configure_power_devices(self, data):
self.power_devices = {}