mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-16 00:29:09 +00:00
qt: Improve user experience on Steam Deck and window managers (#2103)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user