qt: Improve user experience on Steam Deck and window managers (#2103)

This commit is contained in:
tomboylover93 2025-01-17 23:08:20 -08:00 committed by GitHub
parent 90b04e8cc0
commit 40385e13e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 310 additions and 341 deletions

View file

@ -188,8 +188,12 @@ void CheatsPatches::setupUI() {
}
});
QPushButton* closeButton = new QPushButton(tr("Close"));
connect(closeButton, &QPushButton::clicked, [this]() { QWidget::close(); });
controlLayout->addWidget(downloadButton);
controlLayout->addWidget(deleteCheatButton);
controlLayout->addWidget(closeButton);
cheatsLayout->addLayout(controlLayout);
cheatsTab->setLayout(cheatsLayout);
@ -464,6 +468,8 @@ void CheatsPatches::onSaveButtonClicked() {
} else {
QMessageBox::information(this, tr("Success"), tr("Options saved successfully."));
}
QWidget::close();
}
QCheckBox* CheatsPatches::findCheckBoxByName(const QString& name) {