vlc_linux/vlc-3.0.16/modules/gui/qt/menus.cpp
/**
 * Extensions menu: populate the current menu with extensions
 **/
Extensions menu: populate the current menu with extensions
Extensions menu : populate the current menu with extensions
void VLCMenuBar::ExtensionsMenu( intf_thread_t *p_intf, QMenu *extMenu )
{
    ExtensionsManager *extMgr = ExtensionsManager::getInstance( p_intf );
    if( !var_InheritBool( p_intf, "qt-autoload-extensions")
        && !extMgr->isLoaded() )
    {
        return;
    }
    if( !extMgr->isLoaded() && !extMgr->cannotLoad() )
    {
        extMgr->loadExtensions();
    }
    extMenu->addSeparator();
    extMgr->menu( extMenu );
}
void VLCMenuBar :: ExtensionsMenu ( intf_thread_t * p_intf , QMenu * extMenu ) { ExtensionsManager * extMgr = ExtensionsManager :: getInstance ( p_intf ) ; if ( ! var_InheritBool ( p_intf , " " ) && ! extMgr -> isLoaded ( ) ) { return ; } if ( ! extMgr -> isLoaded ( ) && ! extMgr -> cannotLoad ( ) ) { extMgr -> loadExtensions ( ) ; } extMenu -> addSeparator ( ) ; extMgr -> menu ( extMenu ) ; }
Extensions menu: populate the current menu with extensions
Extensions menu : populate the current menu with extensions
/* Get ExtensionsManager and load extensions if needed */ /* Let the ExtensionsManager build itself the menu */