From 05b57dbfd62b276408732420a68ee211a7754f22 Mon Sep 17 00:00:00 2001 From: Robertkill Date: Tue, 23 Apr 2024 17:20:50 +0800 Subject: [PATCH] fix: The first attempt to switch from windowed mode to fullscreen mode failed. delay the timer to 1 sec log: as title issue: https://github.com/linuxdeepin/developer-center/issues/8137 --- launchercontroller.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/launchercontroller.cpp b/launchercontroller.cpp index 7e868145..d839b780 100644 --- a/launchercontroller.cpp +++ b/launchercontroller.cpp @@ -32,8 +32,8 @@ LauncherController::LauncherController(QObject *parent) m_currentFrame = QStringLiteral("FullscreenFrame"); } - // Interval set to 500=>700ms for issue https://github.com/linuxdeepin/developer-center/issues/8137 - m_timer->setInterval(700); + // Interval set to 500=>1000ms for issue https://github.com/linuxdeepin/developer-center/issues/8137 + m_timer->setInterval(1000); m_timer->setSingleShot(true); connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::newProcessInstance, @@ -131,6 +131,7 @@ void LauncherController::setCurrentFrame(const QString &frame) settings.setValue("current_frame", frame); m_currentFrame = frame; + qDebug() << "set current frame:" << m_currentFrame; m_timer->start(); emit currentFrameChanged(); } @@ -143,6 +144,7 @@ void LauncherController::hideWithTimer() { if (visible()) { m_timer->start(); + qDebug() << "hide with timer"; setVisible(false); } }