mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:28:59 +08:00
First initialize error checking.
Change the order of initialization, so the MachineErrorChecker already has its signals attached when the first machine gets loaded. The increased number of 'processEvents'-calls exposed this oversight by allowing it to run out of order. (MachineErrorChecker initializes the has-errors field to True if no check has been done yet.)
This commit is contained in:
parent
261ee5b7f5
commit
56cf2339f2
@ -753,6 +753,11 @@ class CuraApplication(QtApplication):
|
||||
def run(self):
|
||||
super().run()
|
||||
|
||||
Logger.log("i", "Initializing machine error checker")
|
||||
self._machine_error_checker = MachineErrorChecker(self)
|
||||
self._machine_error_checker.initialize()
|
||||
self.processEvents()
|
||||
|
||||
Logger.log("i", "Initializing machine manager")
|
||||
self._setLoadingHint(self._i18n_catalog.i18nc("@info:progress", "Initializing machine manager..."))
|
||||
self._machine_manager = MachineManager(self, parent = self)
|
||||
@ -762,11 +767,6 @@ class CuraApplication(QtApplication):
|
||||
self._container_manager = ContainerManager(self)
|
||||
self.processEvents()
|
||||
|
||||
Logger.log("i", "Initializing machine error checker")
|
||||
self._machine_error_checker = MachineErrorChecker(self)
|
||||
self._machine_error_checker.initialize()
|
||||
self.processEvents()
|
||||
|
||||
# Check if we should run as single instance or not. If so, set up a local socket server which listener which
|
||||
# coordinates multiple Cura instances and accepts commands.
|
||||
if self._use_single_instance:
|
||||
|
Loading…
x
Reference in New Issue
Block a user