Skip to content

Commit

Permalink
fix dock
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mpr1c3 committed Mar 8, 2024
1 parent 12f3806 commit ede9045
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/python/ayab/engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def __init__(self, parent):
self.control = Control(parent, self)
self.__feedback = FeedbackHandler(parent)
self.__logger = logging.getLogger(type(self).__name__)
self.setWindowTitle("Machine: " + Machine(self.control.prefs.value("machine")).name)

def __del__(self):
self.control.stop()
Expand Down
10 changes: 10 additions & 0 deletions src/main/python/ayab/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ def width(self):
else:
return 200

@property
def name(self):
if self == Machine.KH910_KH950:
return "KH-910, KH-950i"
if self == Machine.KH900_KH930_KH940_KH965:
return "KH-900, KH-930, KH-940, KH-965i"
if self == Machine.KH270:
return "KH-270"
return ""

def add_items(box):
"""Add items to alignment combo box."""
box.addItem("KH-910, KH-950i")
Expand Down

0 comments on commit ede9045

Please sign in to comment.