mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 12:05:54 +08:00
Dialog was immediately being destroyed because a reference to it was not being stored in memory. Added a missingPackageDialog variable to WorkspaceDialog to fix this.
Swapped the loading order of Marketplace extensions so SyncOrchestractor is not fetched by PluginRegistry.getInstance().getPluginObject("Marketplace") in WorkspaceDialog. CURA-8610
This commit is contained in:
parent
25250a8205
commit
d5511a078c
@ -41,6 +41,7 @@ class Marketplace(Extension, QObject):
|
|||||||
|
|
||||||
self._tab_shown: int = 0
|
self._tab_shown: int = 0
|
||||||
self._restart_needed = False
|
self._restart_needed = False
|
||||||
|
self.missingPackageDialog = None
|
||||||
|
|
||||||
def getTabShown(self) -> int:
|
def getTabShown(self) -> int:
|
||||||
return self._tab_shown
|
return self._tab_shown
|
||||||
@ -128,5 +129,5 @@ class Marketplace(Extension, QObject):
|
|||||||
:param ignore_warning_callback: A callback that gets executed when the user ignores the pop-up, to show them a
|
:param ignore_warning_callback: A callback that gets executed when the user ignores the pop-up, to show them a
|
||||||
warning.
|
warning.
|
||||||
"""
|
"""
|
||||||
dialog = InstallMissingPackageDialog(packages_metadata, ignore_warning_callback)
|
self.missingPackageDialog = InstallMissingPackageDialog(packages_metadata, ignore_warning_callback)
|
||||||
dialog.show()
|
self.missingPackageDialog.show()
|
||||||
|
@ -14,4 +14,4 @@ def register(app):
|
|||||||
"""
|
"""
|
||||||
Register the plug-in object with Uranium.
|
Register the plug-in object with Uranium.
|
||||||
"""
|
"""
|
||||||
return { "extension": [Marketplace(), SyncOrchestrator(app)] }
|
return { "extension": [SyncOrchestrator(app), Marketplace()] }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user