From dcc76d250f02fed8917fb951ed42b48ffe11194f Mon Sep 17 00:00:00 2001 From: Trial97 Date: Fri, 31 May 2024 19:59:10 +0300 Subject: [PATCH] fix settings page Signed-off-by: Trial97 --- launcher/Application.cpp | 4 ++++ launcher/ui/InstanceWindow.cpp | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/launcher/Application.cpp b/launcher/Application.cpp index d7182c48d..cbb21e38c 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -1673,6 +1673,10 @@ void Application::ShowGlobalSettings(class QWidget* parent, QString open_page) SettingsObject::Lock lock(APPLICATION->settings()); PageDialog dlg(m_globalSettingsProvider.get(), open_page, parent); connect(&dlg, &PageDialog::applied, this, &Application::globalSettingsApplied); + if (DesktopServices::isGameScope()) { + dlg.showFullScreen(); + dlg.setFixedSize(dlg.width(), dlg.height()); + } dlg.exec(); } } diff --git a/launcher/ui/InstanceWindow.cpp b/launcher/ui/InstanceWindow.cpp index 6ba6dcf37..2c49cb26c 100644 --- a/launcher/ui/InstanceWindow.cpp +++ b/launcher/ui/InstanceWindow.cpp @@ -68,10 +68,6 @@ InstanceWindow::InstanceWindow(InstancePtr instance, QWidget* parent) : QMainWin { auto provider = std::make_shared(m_instance); m_container = new PageContainer(provider.get(), "console", this); - if (DesktopServices::isGameScope()) { - m_container->showFullScreen(); - m_container->setFixedSize(this->width(), this->height()); - } m_container->setParentContainer(this); setCentralWidget(m_container); setContentsMargins(0, 0, 0, 0);