VirtualBox

Changeset 105248 in vbox


Ignore:
Timestamp:
Jul 9, 2024 5:57:22 PM (5 months ago)
Author:
vboxsync
Message:

FE/Qt: VBox Manager / Details Pane: Make sure prohibited context-menu actions hidden; That is related to Audio (Input/Output) if no VBOX_WITH_AUDIO_INOUT_INFO defined and to User Interface (Menu-bar/Mini-toolbar) on macOS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsContextMenu.cpp

    r104251 r105248  
    811811                    || enmOptionType == UIExtraDataMetaDefs::DetailsElementOptionTypeAudio_Default)
    812812                    continue;
     813#ifndef VBOX_WITH_AUDIO_INOUT_INFO
     814                /* Skip audio input/output stuff if not allowed: */
     815                if (enmOptionType == UIExtraDataMetaDefs::DetailsElementOptionTypeAudio_IO)
     816                    continue;
     817#endif /* VBOX_WITH_AUDIO_INOUT_INFO */
    813818                /* And create list-widget item of it: */
    814819                QListWidgetItem *pOptionItem = createOptionItem();
     
    936941                    || enmOptionType == UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface_Default)
    937942                    continue;
     943#ifdef VBOX_WS_MAC
     944                /* Skip menu-bar and mini-toolbar types on macOS: */
     945                if (   enmOptionType == UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface_MenuBar
     946                    || enmOptionType == UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface_MiniToolbar)
     947                    continue;
     948#endif /* VBOX_WS_MAC */
    938949                /* And create list-widget item of it: */
    939950                QListWidgetItem *pOptionItem = createOptionItem();
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