mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
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:
parent
8de5e1e5b9
commit
2548fd8014
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue