mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Remove unnecessary variable from CuraApplication
In response to feedback comment https://github.com/Ultimaker/Cura/pull/7904#discussion_r438022415 CURA-7454
This commit is contained in:
parent
984426fabb
commit
20c9be285f
@ -1947,11 +1947,6 @@ class CuraApplication(QtApplication):
|
|||||||
# Only show the complete flow if there is no printer yet.
|
# Only show the complete flow if there is no printer yet.
|
||||||
return self._machine_manager.activeMachine is None
|
return self._machine_manager.activeMachine is None
|
||||||
|
|
||||||
@pyqtSlot(result = bool)
|
|
||||||
def shouldShowAddPrintersUncancellableDialog(self) -> bool:
|
|
||||||
# If there is no printer and the user is logged in, show only the add printers flow in the welcome dialog.
|
|
||||||
return self._machine_manager.activeMachine is None and self.getCuraAPI().account.isLoggedIn
|
|
||||||
|
|
||||||
@pyqtSlot(result = bool)
|
@pyqtSlot(result = bool)
|
||||||
def shouldShowWhatsNewDialog(self) -> bool:
|
def shouldShowWhatsNewDialog(self) -> bool:
|
||||||
has_active_machine = self._machine_manager.activeMachine is not None
|
has_active_machine = self._machine_manager.activeMachine is not None
|
||||||
|
@ -135,7 +135,7 @@ UM.MainWindow
|
|||||||
|
|
||||||
// Reuse the welcome dialog item to show the "Add printers" dialog. Triggered when there is no active
|
// Reuse the welcome dialog item to show the "Add printers" dialog. Triggered when there is no active
|
||||||
// machine and the user is logged in.
|
// machine and the user is logged in.
|
||||||
if (CuraApplication.shouldShowAddPrintersUncancellableDialog())
|
if (!Cura.MachineManager.activeMachine && Cura.API.account.isLoggedIn)
|
||||||
{
|
{
|
||||||
welcomeDialogItem.model = CuraApplication.getAddPrinterPagesModelWithoutCancel()
|
welcomeDialogItem.model = CuraApplication.getAddPrinterPagesModelWithoutCancel()
|
||||||
welcomeDialogItem.progressBarVisible = false
|
welcomeDialogItem.progressBarVisible = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user