VirtualBox

Changeset 39365 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 18, 2011 1:46:59 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: 5947: VM induces a notable CPU load if suspended: Status-bar LED updates disabled for the case when status-bar is hidden by GUI/Customization/noStatusBar extra-data flag.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r39326 r39365  
    267267    if (iElement & UIVisualElement_PauseStuff)
    268268    {
    269         if (uisession()->isPaused() && m_pIdleTimer->isActive())
    270             m_pIdleTimer->stop();
    271         else if (uisession()->isRunning() && !m_pIdleTimer->isActive())
    272             m_pIdleTimer->start(100);
    273         sltUpdateIndicators();
     269        if (!statusBar()->isHidden())
     270        {
     271            if (uisession()->isPaused() && m_pIdleTimer->isActive())
     272                m_pIdleTimer->stop();
     273            else if (uisession()->isRunning() && !m_pIdleTimer->isActive())
     274                m_pIdleTimer->start(100);
     275            sltUpdateIndicators();
     276        }
    274277    }
    275278    if (iElement & UIVisualElement_HDStuff)
     
    624627        menuBar()->setHidden(settings.isFeatureActive("noMenuBar"));
    625628        statusBar()->setHidden(settings.isFeatureActive("noStatusBar"));
     629        if (statusBar()->isHidden())
     630            m_pIdleTimer->stop();
    626631    }
    627632}
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