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

Move file open queue handling later

At the point where the file open queue was processed, the events weren't handled yet. Here's to hoping that they will be handled at this point (but I must commit before testing...).

Contributes to issue CURA-730.
Ghostkeeper 9 лет назад
Родитель
Сommit
d27d4df8ff
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      cura/CuraApplication.py

+ 2 - 3
cura/CuraApplication.py

@@ -82,9 +82,6 @@ class CuraApplication(QtApplication):
 
         super().__init__(name = "cura", version = CuraVersion)
 
-        for file_name in self._open_file_queue: #Open all the files that were queued up while plug-ins were loading.
-            self._openFile(file_name)
-
         self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png")))
 
         self.setRequiredPlugins([
@@ -212,6 +209,8 @@ class CuraApplication(QtApplication):
 
             for file in self.getCommandLineOption("file", []):
                 self._openFile(file)
+            for file_name in self._open_file_queue: #Open all the files that were queued up while plug-ins were loading.
+                self._openFile(file_name)
 
             self.exec_()