Changeset 91227 in vbox
- Timestamp:
- Sep 14, 2021 10:49:11 AM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
-
extradata/UIExtraDataDefs.cpp (modified) (1 diff)
-
extradata/UIExtraDataDefs.h (modified) (1 diff)
-
extradata/UIExtraDataManager.cpp (modified) (2 diffs)
-
extradata/UIExtraDataManager.h (modified) (1 diff)
-
notificationcenter/UINotificationObject.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp
r90083 r91227 28 28 const char *UIExtraDataDefs::GUI_SuppressMessages = "GUI/SuppressMessages"; 29 29 const char *UIExtraDataDefs::GUI_InvertMessageOption = "GUI/InvertMessageOption"; 30 const char *UIExtraDataDefs::GUI_KeepSuccessfullNotificationProgresses = "GUI/KeepSuccessfullNotificationProgresses"; 30 31 #if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG) 31 32 const char *UIExtraDataDefs::GUI_PreventBetaWarning = "GUI/PreventBetaWarning"; -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r90083 r91227 57 57 /** Holds the list of messages for the Message/Popup center frameworks with inverted check-box state. */ 58 58 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; 59 61 #if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG) 60 62 /** Holds version for which user wants to prevent BETA build warning. */ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r91125 r91227 1895 1895 << QString() 1896 1896 << GUI_RestrictedDialogs 1897 << GUI_SuppressMessages << GUI_InvertMessageOption 1897 << GUI_SuppressMessages << GUI_InvertMessageOption << GUI_KeepSuccessfullNotificationProgresses 1898 1898 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 1899 1899 << GUI_PreventApplicationUpdate << GUI_UpdateDate << GUI_UpdateCheckCount … … 2339 2339 } 2340 2340 2341 bool UIExtraDataManager::keepSuccessfullNotificationProgresses() 2342 { 2343 /* 'False' unless feature allowed: */ 2344 return isFeatureAllowed(GUI_KeepSuccessfullNotificationProgresses); 2345 } 2346 2341 2347 #if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG) 2342 2348 QString UIExtraDataManager::preventBetaBuildWarningForVersion() -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r90083 r91227 183 183 /** Returns the list of messages for the Message/Popup center frameworks with inverted check-box state. */ 184 184 QStringList messagesWithInvertedOption(); 185 186 /** Returns whether successfull notification-progresses should NOT close automatically. */ 187 bool keepSuccessfullNotificationProgresses(); 185 188 186 189 #if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG) -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObject.cpp
r91224 r91227 188 188 m_uPercent = 100; 189 189 emit sigProgressFinished(); 190 close(); 190 if (!gEDataManager->keepSuccessfullNotificationProgresses()) 191 close(); 191 192 } 192 193
Note:
See TracChangeset
for help on using the changeset viewer.

