mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 04:09:01 +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,
|
||||
"action": item,
|
||||
})
|
||||
item.reset()
|
||||
|
||||
self.setItems(item_list)
|
||||
self.reset()
|
||||
|
@ -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(!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.
|
||||
|
||||
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();
|
||||
|
@ -147,6 +147,7 @@ ScrollView
|
||||
}
|
||||
text: name
|
||||
visible: base.currentSection == section
|
||||
onClicked: ListView.view.currentIndex = index
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user