mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-25 04:45:00 +00:00
qt: Improve user experience on Steam Deck and window managers (#2103)
This commit is contained in:
parent
90b04e8cc0
commit
40385e13e7
3 changed files with 310 additions and 341 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue