mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 20:35:53 +08:00
Fix update should show logic
CURA-6447
This commit is contained in:
parent
0665076018
commit
e0e3c9609f
@ -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.
|
||||
def _onActiveMachineChanged(self) -> None:
|
||||
self._application.getMachineManager().globalContainerChanged.disconnect(self._onActiveMachineChanged)
|
||||
self.initialize()
|
||||
self._initialize()
|
||||
|
||||
def initialize(self) -> None:
|
||||
self._application.getMachineManager().globalContainerChanged.connect(self._onActiveMachineChanged)
|
||||
@ -210,7 +210,7 @@ class WelcomePagesModel(ListModel):
|
||||
|
||||
def _initialize(self) -> 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
|
||||
show_complete_flow = not has_active_machine
|
||||
|
Loading…
x
Reference in New Issue
Block a user