mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
hide drop label if it's not allowed to add anything
This commit is contained in:
parent
482d1f994e
commit
316ba2294f
1 changed files with 2 additions and 0 deletions
|
|
@ -138,11 +138,13 @@ class DropEmpty(QtWidgets.QWidget):
|
|||
allowed_items = [item + "s" for item in allowed_items]
|
||||
|
||||
if not allowed_items:
|
||||
self._drop_label_widget.setVisible(False)
|
||||
self._items_label_widget.setText(
|
||||
"It is not allowed to add anything here!"
|
||||
)
|
||||
return
|
||||
|
||||
self._drop_label_widget.setVisible(True)
|
||||
items_label = "Multiple "
|
||||
if self._single_item:
|
||||
items_label = "Single "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue