mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 06:08:58 +08:00
Only show add machine dialogue if your stack got corrupt, not whole onboarding
We don't need to accept the EULA again or whatever. Just add the printer that got lost. Contributes to issue CURA-6057.
This commit is contained in:
parent
1207533046
commit
2ccc30b824
@ -84,7 +84,7 @@ UM.MainWindow
|
||||
Cura.Actions.parent = backgroundItem
|
||||
CuraApplication.purgeWindows()
|
||||
|
||||
if (CuraApplication.needToShowUserAgreement || Cura.MachineManager.activeMachine == null)
|
||||
if (CuraApplication.needToShowUserAgreement)
|
||||
{
|
||||
welcomeDialog.visible = true
|
||||
}
|
||||
@ -851,6 +851,10 @@ UM.MainWindow
|
||||
{
|
||||
base.visible = true;
|
||||
}
|
||||
if(Cura.MachineManager.activeMachine == null)
|
||||
{
|
||||
addMachineDialog.open();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2018 Ultimaker B.V.
|
||||
// Copyright (c) 2019 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.2
|
||||
@ -38,7 +38,8 @@ UM.Dialog
|
||||
onVisibilityChanged:
|
||||
{
|
||||
// Reset selection and machine name
|
||||
if (visible) {
|
||||
if (visible)
|
||||
{
|
||||
activeCategory = preferredCategory;
|
||||
machineList.currentIndex = 0;
|
||||
machineName.text = getMachineName();
|
||||
|
Loading…
x
Reference in New Issue
Block a user