mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-08-03 19:37:45 -04:00
fix settings page
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
1709060a73
commit
dcc76d250f
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user