mirror of
https://git.citron-emu.org/citron/emulator
synced 2026-01-26 20:53:29 +00:00
fix(gamescope): Restructure Update Dialog for Gamescope
Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
@@ -220,9 +220,18 @@ void UpdaterDialog::OnRestartButtonClicked() {
|
||||
}
|
||||
|
||||
void UpdaterDialog::SetupUI() {
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
const bool is_gamescope = UISettings::IsGamescope();
|
||||
|
||||
setMinimumSize(size());
|
||||
if (is_gamescope) {
|
||||
// Match the behavior of ConfigureDialog to ensure focus and visibility on Steam Deck
|
||||
setWindowFlags(Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint);
|
||||
setWindowModality(Qt::NonModal);
|
||||
resize(1100, 700);
|
||||
} else {
|
||||
// Desktop remains untouched
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
setMinimumSize(size());
|
||||
}
|
||||
|
||||
ui->currentVersionValue->setText(QString::fromStdString(updater_service->GetCurrentVersion()));
|
||||
ui->appImageSelectorLabel->setVisible(false);
|
||||
|
||||
Reference in New Issue
Block a user