VirtualBox

Changeset 104968 in vbox


Ignore:
Timestamp:
Jun 19, 2024 6:51:37 PM (3 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10513: Extra-data Manager: Set GUI/Settings/ExpertMode extra-data flag to true if it's not yet defined but there are VMs registered already; We've decided that forcing all users to Basic mode by default is overkill a bit, let's force only those beginners who have no VMs yet.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/extradata
Files:
2 edited

Legend:

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

    r104967 r104968  
    49704970    /* Prepare extra-data event-handler: */
    49714971    prepareExtraDataEventHandler();
     4972    /* Prepare extra-data settings: */
     4973    prepareExtraDataSettings();
    49724974}
    49734975
     
    49964998                this, &UIExtraDataManager::sltExtraDataChange,
    49974999                Qt::QueuedConnection);
     5000    }
     5001}
     5002
     5003void UIExtraDataManager::prepareExtraDataSettings()
     5004{
     5005    /* For the case when Expert mode is undecided yet: */
     5006    if (extraDataString(UIExtraDataDefs::GUI_Settings_ExpertMode).isNull())
     5007    {
     5008        /* If there are VMs already, mark the mode as Expert one, we've decided
     5009         * that forcing all users to Basic mode by default is overkill a bit. */
     5010        if (!gpGlobalSession->virtualBox().GetMachines().isEmpty())
     5011            setSettingsInExpertMode(true);
    49985012    }
    49995013}
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r104967 r104968  
    902902    /** Prepare extra-data event-handler. */
    903903    void prepareExtraDataEventHandler();
     904    /** Prepare extra-data settings. */
     905    void prepareExtraDataSettings();
    904906#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
    905907    // /** Prepare window. */
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