mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:45:52 +08:00
Merge branch 'WIP_onboarding' of github.com:Ultimaker/Cura into WIP_onboarding
This commit is contained in:
commit
cf68fb9cae
@ -95,6 +95,7 @@ class FirstStartMachineActionsModel(ListModel):
|
|||||||
"content": item.displayItem,
|
"content": item.displayItem,
|
||||||
"action": item,
|
"action": item,
|
||||||
})
|
})
|
||||||
|
item.reset()
|
||||||
|
|
||||||
self.setItems(item_list)
|
self.setItems(item_list)
|
||||||
self.reset()
|
self.reset()
|
||||||
|
@ -84,7 +84,7 @@ UM.MainWindow
|
|||||||
Cura.Actions.parent = backgroundItem
|
Cura.Actions.parent = backgroundItem
|
||||||
CuraApplication.purgeWindows()
|
CuraApplication.purgeWindows()
|
||||||
|
|
||||||
if (CuraApplication.needToShowUserAgreement || Cura.MachineManager.activeMachine == null)
|
if (CuraApplication.needToShowUserAgreement)
|
||||||
{
|
{
|
||||||
welcomeDialog.visible = true
|
welcomeDialog.visible = true
|
||||||
}
|
}
|
||||||
@ -851,6 +851,10 @@ UM.MainWindow
|
|||||||
{
|
{
|
||||||
base.visible = true;
|
base.visible = true;
|
||||||
}
|
}
|
||||||
|
if(!CuraApplication.needToShowUserAgreement && 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.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
@ -38,7 +38,8 @@ UM.Dialog
|
|||||||
onVisibilityChanged:
|
onVisibilityChanged:
|
||||||
{
|
{
|
||||||
// Reset selection and machine name
|
// Reset selection and machine name
|
||||||
if (visible) {
|
if (visible)
|
||||||
|
{
|
||||||
activeCategory = preferredCategory;
|
activeCategory = preferredCategory;
|
||||||
machineList.currentIndex = 0;
|
machineList.currentIndex = 0;
|
||||||
machineName.text = getMachineName();
|
machineName.text = getMachineName();
|
||||||
|
@ -147,6 +147,7 @@ ScrollView
|
|||||||
}
|
}
|
||||||
text: name
|
text: name
|
||||||
visible: base.currentSection == section
|
visible: base.currentSection == section
|
||||||
|
onClicked: ListView.view.currentIndex = index
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user