mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-24 10:45:27 +02:00
fix the overlays visible on startup case
This commit is contained in:
parent
366aa39be8
commit
519a90f2bd
1 changed files with 3 additions and 0 deletions
|
@ -2438,11 +2438,14 @@ void Application::idle(uint64_t now) {
|
|||
Stats::getInstance()->updateStats();
|
||||
AvatarInputs::getInstance()->update();
|
||||
|
||||
// These tasks need to be done on our first idle, because we don't want the showing of
|
||||
// overlay subwindows to do a showDesktop() until after the first time through
|
||||
static bool firstIdle = true;
|
||||
if (firstIdle) {
|
||||
firstIdle = false;
|
||||
auto offscreenUi = DependencyManager::get<OffscreenUi>();
|
||||
connect(offscreenUi.data(), &OffscreenUi::showDesktop, this, &Application::showDesktop);
|
||||
_overlayConductor.setEnabled(Menu::getInstance()->isOptionChecked(MenuOption::Overlays));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue