From 0c16a28baf8c21ddbe8eb366399f0b5ac3ff6872 Mon Sep 17 00:00:00 2001 From: tomboylover93 <95257311+tomboylover93@users.noreply.github.com> Date: Wed, 8 Jan 2025 18:59:27 -0300 Subject: [PATCH] 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 --- src/qt_gui/cheats_patches.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/qt_gui/cheats_patches.cpp b/src/qt_gui/cheats_patches.cpp index 4c87bf0fa..1f89538f7 100644 --- a/src/qt_gui/cheats_patches.cpp +++ b/src/qt_gui/cheats_patches.cpp @@ -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);