Преглед на файлове

KonvergoWindow: delay setting the fullscreen state

This fixes web-client scaling when going from windowed desktop mode to
fullscreen TV mode. The exact reason this broke was because:
- the initialScaling parameter was still for the windowed size
- the web-client onScaleChanged signal was not connected yet,
  so an immediate resize was ignored
Vincent Lang преди 8 години
родител
ревизия
933766152f
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      src/ui/KonvergoWindow.cpp

+ 1 - 2
src/ui/KonvergoWindow.cpp

@@ -335,10 +335,9 @@ void KonvergoWindow::updateMainSectionSettings(const QVariantMap& values)
 
     PlayerComponent::Get().stop();
 
+    SettingsComponent::Get().setValue(SETTINGS_SECTION_MAIN, "fullscreen", fullscreen);
     QTimer::singleShot(0, [=]
     {
-      SettingsComponent::Get().setValue(SETTINGS_SECTION_MAIN, "fullscreen", fullscreen);
-
       m_webDesktopMode = newDesktopMode;
       emit webDesktopModeChanged();
       emit webUrlChanged();