mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 04:03:13 +08: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
@ -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…
x
Reference in New Issue
Block a user