VirtualBox

Changeset 91227 in vbox


Ignore:
Timestamp:
Sep 14, 2021 10:49:11 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: Extra-data condition for keeping finished notification-progresses alive; Flag name is GUI/KeepSuccessfullNotificationProgresses and it's false by default.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp

    r90083 r91227  
    2828const char *UIExtraDataDefs::GUI_SuppressMessages = "GUI/SuppressMessages";
    2929const char *UIExtraDataDefs::GUI_InvertMessageOption = "GUI/InvertMessageOption";
     30const char *UIExtraDataDefs::GUI_KeepSuccessfullNotificationProgresses = "GUI/KeepSuccessfullNotificationProgresses";
    3031#if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG)
    3132const char *UIExtraDataDefs::GUI_PreventBetaWarning = "GUI/PreventBetaWarning";
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h

    r90083 r91227  
    5757        /** Holds the list of messages for the Message/Popup center frameworks with inverted check-box state. */
    5858        SHARED_LIBRARY_STUFF extern const char *GUI_InvertMessageOption;
     59        /** Holds whether successfull notification-progresses should NOT close automatically. */
     60        SHARED_LIBRARY_STUFF extern const char *GUI_KeepSuccessfullNotificationProgresses;
    5961#if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG)
    6062        /** Holds version for which user wants to prevent BETA build warning. */
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r91125 r91227  
    18951895           << QString()
    18961896           << GUI_RestrictedDialogs
    1897            << GUI_SuppressMessages << GUI_InvertMessageOption
     1897           << GUI_SuppressMessages << GUI_InvertMessageOption << GUI_KeepSuccessfullNotificationProgresses
    18981898#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    18991899           << GUI_PreventApplicationUpdate << GUI_UpdateDate << GUI_UpdateCheckCount
     
    23392339}
    23402340
     2341bool UIExtraDataManager::keepSuccessfullNotificationProgresses()
     2342{
     2343    /* 'False' unless feature allowed: */
     2344    return isFeatureAllowed(GUI_KeepSuccessfullNotificationProgresses);
     2345}
     2346
    23412347#if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG)
    23422348QString UIExtraDataManager::preventBetaBuildWarningForVersion()
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r90083 r91227  
    183183        /** Returns the list of messages for the Message/Popup center frameworks with inverted check-box state. */
    184184        QStringList messagesWithInvertedOption();
     185
     186        /** Returns whether successfull notification-progresses should NOT close automatically. */
     187        bool keepSuccessfullNotificationProgresses();
    185188
    186189#if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG)
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObject.cpp

    r91224 r91227  
    188188    m_uPercent = 100;
    189189    emit sigProgressFinished();
    190     close();
     190    if (!gEDataManager->keepSuccessfullNotificationProgresses())
     191        close();
    191192}
    192193
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