mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Hide empty abbreviated machinename
Connected printers that are not Cura Connect printers may not have a connect_group_name.
This commit is contained in:
parent
c6fa47e584
commit
d03ec22dee
1 changed files with 8 additions and 1 deletions
|
|
@ -26,7 +26,14 @@ Cura.ExpandablePopup
|
||||||
|
|
||||||
headerItem: Cura.IconWithText
|
headerItem: Cura.IconWithText
|
||||||
{
|
{
|
||||||
text: isNetworkPrinter ? Cura.MachineManager.activeMachineNetworkGroupName : Cura.MachineManager.activeMachineName
|
text:
|
||||||
|
{
|
||||||
|
if (isNetworkPrinter && Cura.MachineManager.activeMachineNetworkGroupName != "")
|
||||||
|
{
|
||||||
|
Cura.MachineManager.activeMachineNetworkGroupName
|
||||||
|
}
|
||||||
|
return Cura.MachineManager.activeMachineName
|
||||||
|
}
|
||||||
source:
|
source:
|
||||||
{
|
{
|
||||||
if (isNetworkPrinter)
|
if (isNetworkPrinter)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue