Skip to content

Commit

Permalink
fix: error selecting printer (#156)
Browse files Browse the repository at this point in the history
* Correction of the printer name reference

* pre-commit

* fix: simplify the code

---------

Co-authored-by: Lev Kozlov <[email protected]>
  • Loading branch information
LoneGit and lvjonok authored Jun 11, 2024
1 parent 3945f31 commit 5c0cf2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def create_printer(self):
save_settings()

# update label with printer path
self.view.printer_path_edit.setText(os.path.basename(printer_path))
self.view.setts.edit("printer_path").setText(os.path.basename(printer_path))

# update path in calibration model
try:
Expand Down Expand Up @@ -245,7 +245,7 @@ def choose_printer_path(self):
save_settings()

# update label with printer path
self.view.printer_path_edit.setText(os.path.basename(printer_path))
self.view.setts.edit("printer_path").setText(os.path.basename(printer_path))

# update path in calibration model
try:
Expand Down

0 comments on commit 5c0cf2f

Please sign in to comment.