mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 17:02:40 +00:00
Add 'Close' button to 'Cheats' tab of 'Cheats and Patches' window
This fixes another issue with shadPS4 on desktops and interfaces that hide the app's titlebar
This commit is contained in:
parent
7ca14c4d26
commit
0c16a28baf
@ -188,8 +188,14 @@ 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);
|
||||
|
Loading…
Reference in New Issue
Block a user