Просмотр исходного кода

Merged in the_real_scgtrp/flatcam/on_file_saveprojectas-parameter-names (pull request #189)

Fix kwarg names in calls to on_file_saveprojectas: thread -> use_thread, quit -> quit_action
Mike Smith 6 лет назад
Родитель
Сommit
2907a73d5c
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      FlatCAMApp.py
  2. 1 1
      FlatCAMTranslation.py

+ 1 - 1
FlatCAMApp.py

@@ -3667,7 +3667,7 @@ class App(QtCore.QObject):
             response = msgbox.clickedButton()
 
             if response == bt_yes:
-                self.on_file_saveprojectas(thread=True, quit=True)
+                self.on_file_saveprojectas(use_thread=True, quit_action=True)
             elif response == bt_no:
                 self.quit_application()
             elif response == bt_cancel:

+ 1 - 1
FlatCAMTranslation.py

@@ -174,7 +174,7 @@ def restart_program(app):
         response = msgbox.clickedButton()
 
         if response == bt_yes:
-            app.on_file_saveprojectas(thread=True, quit=True)
+            app.on_file_saveprojectas(use_thread=True, quit_action=True)
 
     app.save_defaults()
     python = sys.executable