Ver código fonte

Tweak the presentationOptions delay

Tobias Hieta 8 anos atrás
pai
commit
00257a1fe2
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/ui/KonvergoWindow.cpp

+ 2 - 2
src/ui/KonvergoWindow.cpp

@@ -391,13 +391,13 @@ void KonvergoWindow::onVisibilityChanged(QWindow::Visibility visibility)
   {
     loadGeometry();
 #ifdef Q_OS_MAC
-    QTimer::singleShot(3 * 1000, [&] { OSXUtils::SetPresentationOptions(m_osxPresentationOptions); });
+    QTimer::singleShot(1 * 1000, [&] { OSXUtils::SetPresentationOptions(m_osxPresentationOptions); });
 #endif
   }
   else if (visibility == QWindow::FullScreen)
   {
 #ifdef Q_OS_MAC
-    QTimer::singleShot(3 * 1000, [&] {
+    QTimer::singleShot(1 * 1000, [&] {
       OSXUtils::SetPresentationOptions(m_osxPresentationOptions | OSXUtils::GetPresentationOptionsForFullscreen(!m_webDesktopMode));
     });
 #endif