VirtualBox

Changeset 90565 in vbox for trunk/src


Ignore:
Timestamp:
Aug 7, 2021 11:35:44 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: UINotificationCenter: Hide if there is nothing to show.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.cpp

    r90563 r90565  
    287287     * height, we will have to align items added above up. */
    288288    m_pLayoutItems->addStretch();
     289
     290    /* Hide and slide away if there are no notifications to show: */
     291    setHidden(m_pModel->ids().isEmpty());
     292    if (m_pModel->ids().isEmpty() && m_pOpenButton->isChecked())
     293        m_pOpenButton->toggle();
    289294}
    290295
    291296void UINotificationCenter::prepare()
    292297{
     298    /* Hide initially: */
     299    setHidden(true);
     300
    293301    /* Listen for parent events: */
    294302    if (parent())
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette