From 46fa45768afcad824fd2a893a9100c69e0a1a18e Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Wed, 17 Apr 2019 09:34:59 +0200 Subject: [PATCH] Simplify shouldShowWelcomeDialog() CURA-6447 --- cura/CuraApplication.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 60722c4767..0310526c2e 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -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: