mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06: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
|
||||
{
|
||||
text: isNetworkPrinter ? Cura.MachineManager.activeMachineNetworkGroupName : Cura.MachineManager.activeMachineName
|
||||
text:
|
||||
{
|
||||
if (isNetworkPrinter && Cura.MachineManager.activeMachineNetworkGroupName != "")
|
||||
{
|
||||
Cura.MachineManager.activeMachineNetworkGroupName
|
||||
}
|
||||
return Cura.MachineManager.activeMachineName
|
||||
}
|
||||
source:
|
||||
{
|
||||
if (isNetworkPrinter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue