vlc_linux/vlc-3.0.16/modules/gui/qt/main_interface.cpp
/**
 * Updates the Systray Icon's menu and toggle the main interface
 */
Updates the Systray Icon's menu and toggle the main interface
Updates the Systray Icon ' s menu and toggle the main interface
void MainInterface::toggleUpdateSystrayMenu()
{
    if( isHidden() )
    {
        show();
        activateWindow();
    }
    else if( isMinimized() )
    {
        showNormal();
        activateWindow();
    }
    else
    {
        toggleUpdateSystrayMenuWhenVisible();
    }
    if( sysTray )
        VLCMenuBar::updateSystrayMenu( this, p_intf );
}
void MainInterface :: toggleUpdateSystrayMenu ( ) { if ( isHidden ( ) ) { show ( ) ; activateWindow ( ) ; } else if ( isMinimized ( ) ) { showNormal ( ) ; activateWindow ( ) ; } else { toggleUpdateSystrayMenuWhenVisible ( ) ; } if ( sysTray ) VLCMenuBar :: updateSystrayMenu ( this , p_intf ) ; }
Updates the Systray Icon's menu and toggle the main interface
Updates the Systray Icon ' s menu and toggle the main interface
/* If hidden, show it */ /* Minimized */ /* Visible (possibly under other windows) */