From 7ca14c4d26a26190c65155e6778666a041212751 Mon Sep 17 00:00:00 2001 From: tomboylover93 <95257311+tomboylover93@users.noreply.github.com> Date: Wed, 8 Jan 2025 18:46:15 -0300 Subject: [PATCH] Make 'Save' button in 'Patches' section of 'Cheats and Patches' window close the window when clicked This addresses one of the issues with using shadPS4 on a Steam Deck, or any desktop and/or interface that hides the titlebar, such as window managers --- src/qt_gui/cheats_patches.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt_gui/cheats_patches.cpp b/src/qt_gui/cheats_patches.cpp index 2fea0b6ea..4c87bf0fa 100644 --- a/src/qt_gui/cheats_patches.cpp +++ b/src/qt_gui/cheats_patches.cpp @@ -464,6 +464,8 @@ void CheatsPatches::onSaveButtonClicked() { } else { QMessageBox::information(this, tr("Success"), tr("Options saved successfully.")); } + + QWidget::close(); } QCheckBox* CheatsPatches::findCheckBoxByName(const QString& name) {