Skip to content

Commit

Permalink
add debug message when quitting
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mpr1c3 authored and dl1com committed Oct 17, 2023
1 parent 9f111f8 commit 66f3411
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/python/ayab/ayab.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ def __activate_ui(self):
def __activate_menu(self):
self.menu.ui.action_open_image_file.triggered.connect(
self.scene.ayabimage.select_file)
self.menu.ui.action_quit.triggered.connect(
QCoreApplication.instance().quit)
self.menu.ui.action_quit.triggered.connect(self.__quit)
self.menu.ui.action_load_AYAB_firmware.triggered.connect(
self.flash.open)
self.menu.ui.action_cancel.triggered.connect(self.engine.cancel)
Expand All @@ -123,6 +122,11 @@ def __activate_menu(self):
slot = getattr(self.scene.ayabimage, t)
action.triggered.connect(slot)

def __quit(self):
logging.debug("Quitting")
QCoreApplication.instance().quit()
sys.exit()

def start_knitting(self):
"""Start the knitting process."""
self.start_operation()
Expand Down

0 comments on commit 66f3411

Please sign in to comment.