Skip to content

Commit

Permalink
revert AutolockStatus back to IntEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
bleykauf committed Sep 24, 2024
1 parent 6d99bb6 commit 794ce83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linien-common/linien_common/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"""This file contains stuff that is required by the server as well as the client."""

import logging
from enum import Enum, IntEnum, auto
from enum import IntEnum, auto
from time import time
from typing import Dict, Iterable, List, Tuple, Union

Expand Down Expand Up @@ -58,7 +58,7 @@ class AutolockMode(IntEnum):
SIMPLE = 2


class AutolockStatus(Enum):
class AutolockStatus(IntEnum):
FAILED = auto()
STOPPED = auto()
SELECTING = auto()
Expand Down
2 changes: 2 additions & 0 deletions linien-gui/linien_gui/ui/locking_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ def on_connection_established(self):
)

def on_autolock_status_changed(self, status: AutolockStatus) -> None:
print(f"{status}")
match status.value:
case AutolockStatus.STOPPED:
print("jo")
self.lockControlTabWidget.show()
case _:
self.lockControlTabWidget.hide()
Expand Down

0 comments on commit 794ce83

Please sign in to comment.