Fix greyed out cluster printers

The PrintWindow still used an old style combobox.
This resulted in a Mac user not being able to specify
which clustered printer he wanted to send a slice to.

Using the new QtQuick.Controls and specifically setting
the currentIndex fixed it for Mac.
This commit is contained in:
jelle Spijker 2021-08-30 13:39:12 +02:00 committed by Jelle Spijker
parent 8de5e1e5b9
commit 2548fd8014

View file

@ -2,7 +2,8 @@
// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.2
import QtQuick.Window 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls 2.15
import UM 1.1 as UM
UM.Dialog {
@ -84,6 +85,7 @@ UM.Dialog {
ComboBox {
id: printerComboBox;
currentIndex: 0;
Behavior on height { NumberAnimation { duration: 100 } }
height: 40 * screenScaleFactor;
model: ListModel {