mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 07:06:00 +08:00
Fixed available printers in dropdown menu
CURA-1278
This commit is contained in:
parent
66a29a2f1c
commit
ac9b391e7f
@ -7,7 +7,8 @@ import QtQuick.Controls.Styles 1.1
|
|||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
import QtQuick.Dialogs 1.1
|
import QtQuick.Dialogs 1.1
|
||||||
|
|
||||||
import UM 1.1 as UM
|
import UM 1.2 as UM
|
||||||
|
import Cura 1.0 as Cura
|
||||||
|
|
||||||
UM.MainWindow
|
UM.MainWindow
|
||||||
{
|
{
|
||||||
@ -168,14 +169,17 @@ UM.MainWindow
|
|||||||
|
|
||||||
Instantiator
|
Instantiator
|
||||||
{
|
{
|
||||||
// model: UM.MachineInstancesModel { }
|
model: UM.ContainerStacksModel
|
||||||
|
{
|
||||||
|
filter: {"type": "machine"}
|
||||||
|
}
|
||||||
MenuItem
|
MenuItem
|
||||||
{
|
{
|
||||||
text: model.name;
|
text: model.name;
|
||||||
checkable: true;
|
checkable: true;
|
||||||
checked: model.active;
|
checked: Cura.MachineManager.activeMachineId == model.id
|
||||||
exclusiveGroup: machineMenuGroup;
|
exclusiveGroup: machineSelectionMenuGroup;
|
||||||
onTriggered: UM.MachineManager.setActiveMachineInstance(model.name)
|
onTriggered: Cura.MachineManager.setActiveMachine(model.id);
|
||||||
}
|
}
|
||||||
onObjectAdded: machineMenu.insertItem(index, object)
|
onObjectAdded: machineMenu.insertItem(index, object)
|
||||||
onObjectRemoved: machineMenu.removeItem(object)
|
onObjectRemoved: machineMenu.removeItem(object)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user