mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Don't show context menu button if it is empty
It will likely be empty for guest accounts on networks where the administrator is the only one with rights to access other people's prints. Contributes to issue CURA-9220.
This commit is contained in:
parent
5eb340e3f0
commit
e9f9730364
3 changed files with 104 additions and 82 deletions
|
@ -206,7 +206,11 @@ Item
|
|||
onClicked: enabled ? contextMenu.switchPopupState() : {}
|
||||
visible:
|
||||
{
|
||||
if (!printJob)
|
||||
if(!printJob)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(!contextMenu.hasItems)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue