mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-08-03 11:27:33 -04:00
add progressDialog and remove wizzard from fullscreen on gamescope
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
73e89ba1b4
commit
a9b485c656
@ -1256,10 +1256,6 @@ bool Application::createSetupWizard()
|
||||
m_setupWizard->addPage(new LoginWizardPage(m_setupWizard));
|
||||
}
|
||||
connect(m_setupWizard, &QDialog::finished, this, &Application::setupWizardFinished);
|
||||
if (DesktopServices::isGameScope()) {
|
||||
m_setupWizard->showFullScreen();
|
||||
m_setupWizard->setFixedSize(m_setupWizard->width(), m_setupWizard->height());
|
||||
}
|
||||
m_setupWizard->show();
|
||||
}
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
#include "ProgressDialog.h"
|
||||
#include <QPoint>
|
||||
#include "DesktopServices.h"
|
||||
#include "ui_ProgressDialog.h"
|
||||
|
||||
#include <QDebug>
|
||||
@ -98,6 +99,11 @@ ProgressDialog::~ProgressDialog()
|
||||
|
||||
void ProgressDialog::updateSize(bool recenterParent)
|
||||
{
|
||||
if (DesktopServices::isGameScope()) {
|
||||
this->showFullScreen();
|
||||
this->setFixedSize(this->width(), this->height());
|
||||
return;
|
||||
}
|
||||
QSize lastSize = this->size();
|
||||
QPoint lastPos = this->pos();
|
||||
int minHeight = ui->globalStatusDetailsLabel->minimumSize().height() + (ui->verticalLayout->spacing() * 2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user