fix settings page

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-05-31 19:59:10 +03:00
parent 1709060a73
commit dcc76d250f
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318
2 changed files with 4 additions and 4 deletions

View File

@ -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();
}
}

View File

@ -68,10 +68,6 @@ InstanceWindow::InstanceWindow(InstancePtr instance, QWidget* parent) : QMainWin
{
auto provider = std::make_shared<InstancePageProvider>(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);