change lists to tuples

This commit is contained in:
alfrix
2024-01-15 14:44:50 -03:00
parent 81e76b1815
commit 2956658104
3 changed files with 4 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ class Panel(ScreenPanel):
self.scroll.show_all()
def restart(self, widget, program):
if self._printer.state in ["printing", "paused"]:
if self._printer.state in ("printing", "paused"):
self._screen._confirm_send_action(widget, f'{_("Are you sure?")}\n\n'
f'{_("Restart")}: {program}',
"machine.services.restart", {"service": program})