diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-04-01 09:49:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-01 09:49:08 -0400 |
commit | b2772bcb0d994a9646282e98aca5d97b70f843f4 (patch) | |
tree | d2a1f4b3990c946d63652c23361174a33cd3e782 /src/yuzu/main.cpp | |
parent | ff4fbaf152929872fc71973cf084ada02af90bdf (diff) | |
parent | 11edba4974ab702deb54371bf1bf7644f1dd8e38 (diff) |
Merge pull request #9997 from german77/cancel_controller
applet: controller: Implement cancel button
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 0c60a90cb..2ebfef551 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -634,15 +634,16 @@ void GMainWindow::ControllerSelectorReconfigureControllers( Qt::WindowStaysOnTopHint | Qt::WindowTitleHint | Qt::WindowSystemMenuHint); controller_applet->setWindowModality(Qt::WindowModal); - controller_applet->exec(); - - emit ControllerSelectorReconfigureFinished(); + bool is_success = controller_applet->exec() != QDialog::Rejected; // Don't forget to apply settings. + system->HIDCore().DisableAllControllerConfiguration(); system->ApplySettings(); config->Save(); UpdateStatusButtons(); + + emit ControllerSelectorReconfigureFinished(is_success); } void GMainWindow::ControllerSelectorRequestExit() { |