mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Merge branch '4.0' of github.com:Ultimaker/Cura into 4.0
This commit is contained in:
commit
d33cb6dfe9
2 changed files with 7 additions and 4 deletions
|
@ -230,7 +230,7 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
||||||
# Returns the unique configurations of the printers within this output device
|
# Returns the unique configurations of the printers within this output device
|
||||||
@pyqtProperty("QStringList", notify = uniqueConfigurationsChanged)
|
@pyqtProperty("QStringList", notify = uniqueConfigurationsChanged)
|
||||||
def uniquePrinterTypes(self) -> List[str]:
|
def uniquePrinterTypes(self) -> List[str]:
|
||||||
return list(set([configuration.printerType for configuration in self._unique_configurations]))
|
return list(sorted(set([configuration.printerType for configuration in self._unique_configurations])))
|
||||||
|
|
||||||
def _onPrintersChanged(self) -> None:
|
def _onPrintersChanged(self) -> None:
|
||||||
for printer in self._printers:
|
for printer in self._printers:
|
||||||
|
|
|
@ -7,11 +7,14 @@ import QtQuick.Controls 1.4
|
||||||
import UM 1.2 as UM
|
import UM 1.2 as UM
|
||||||
import Cura 1.0 as Cura
|
import Cura 1.0 as Cura
|
||||||
|
|
||||||
Instantiator {
|
Instantiator
|
||||||
model: UM.ContainerStacksModel {
|
{
|
||||||
|
model: UM.ContainerStacksModel
|
||||||
|
{
|
||||||
filter: {"type": "machine", "um_network_key": "*", "hidden": "False"}
|
filter: {"type": "machine", "um_network_key": "*", "hidden": "False"}
|
||||||
}
|
}
|
||||||
MenuItem {
|
MenuItem
|
||||||
|
{
|
||||||
// TODO: Use printer_group icon when it's a cluster. Not use it for now since it doesn't look as expected
|
// TODO: Use printer_group icon when it's a cluster. Not use it for now since it doesn't look as expected
|
||||||
// iconSource: UM.Theme.getIcon("printer_single")
|
// iconSource: UM.Theme.getIcon("printer_single")
|
||||||
text: model.metadata["connect_group_name"]
|
text: model.metadata["connect_group_name"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue