mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Simplify shouldShowWelcomeDialog()
CURA-6447
This commit is contained in:
parent
0fe6555881
commit
46fa45768a
1 changed files with 2 additions and 5 deletions
|
@ -1775,11 +1775,8 @@ class CuraApplication(QtApplication):
|
|||
|
||||
@pyqtSlot(result = bool)
|
||||
def shouldShowWelcomeDialog(self) -> bool:
|
||||
has_active_machine = self._machine_manager.activeMachine is not None
|
||||
|
||||
# Only show the complete flow if there is not printer yet.
|
||||
show_complete_flow = not has_active_machine
|
||||
return show_complete_flow
|
||||
# Only show the complete flow if there is no printer yet.
|
||||
return self._machine_manager.activeMachine is None
|
||||
|
||||
@pyqtSlot(result = bool)
|
||||
def shouldShowWhatsNewDialog(self) -> bool:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue