mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fix update should show logic
CURA-6447
This commit is contained in:
parent
0665076018
commit
e0e3c9609f
1 changed files with 2 additions and 2 deletions
|
|
@ -202,7 +202,7 @@ class WelcomePagesModel(ListModel):
|
||||||
# FIXME: HACKs for optimization that we don't update the model every time the active machine gets changed.
|
# FIXME: HACKs for optimization that we don't update the model every time the active machine gets changed.
|
||||||
def _onActiveMachineChanged(self) -> None:
|
def _onActiveMachineChanged(self) -> None:
|
||||||
self._application.getMachineManager().globalContainerChanged.disconnect(self._onActiveMachineChanged)
|
self._application.getMachineManager().globalContainerChanged.disconnect(self._onActiveMachineChanged)
|
||||||
self.initialize()
|
self._initialize()
|
||||||
|
|
||||||
def initialize(self) -> None:
|
def initialize(self) -> None:
|
||||||
self._application.getMachineManager().globalContainerChanged.connect(self._onActiveMachineChanged)
|
self._application.getMachineManager().globalContainerChanged.connect(self._onActiveMachineChanged)
|
||||||
|
|
@ -210,7 +210,7 @@ class WelcomePagesModel(ListModel):
|
||||||
|
|
||||||
def _initialize(self) -> None:
|
def _initialize(self) -> None:
|
||||||
has_active_machine = self._application.getMachineManager().activeMachine is not None
|
has_active_machine = self._application.getMachineManager().activeMachine is not None
|
||||||
has_app_just_upgraded = self._application.hasJustUpgradedToNewVersion()
|
has_app_just_upgraded = self._application.hasJustUpdatedFromOldVersion()
|
||||||
|
|
||||||
# Only show the what's new dialog if there's no machine and we have just upgraded
|
# Only show the what's new dialog if there's no machine and we have just upgraded
|
||||||
show_complete_flow = not has_active_machine
|
show_complete_flow = not has_active_machine
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue