summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-07-22 03:38:45 +0200
committerGitHub <noreply@github.com>2023-07-22 03:38:45 +0200
commitfb2b3753b59a5c9f0fe390a452e2b8a857b60066 (patch)
treec5b954d67616b0f0e4b3af9f340b6fb4c8c20326 /Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp
parent2764978bebce9cedf0e329c320951ff0508f7139 (diff)
parentc8df26554bc5433bff13aaff934d1539226577d7 (diff)
Merge pull request #12015 from nyanpasu64/gc-adapter-sleep-detach
Fix GC Adapter breaking and burning a full CPU core after sleep-wake on Linux
Diffstat (limited to 'Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp b/Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp
index c27ab2e99f..38ea1e4e7f 100644
--- a/Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp
+++ b/Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp
@@ -198,12 +198,11 @@ void GamecubeControllersWidget::SaveSettings()
static_cast<s32>(i));
}
}
-
- if (GCAdapter::UseAdapter())
- GCAdapter::StartScanThread();
- else
- GCAdapter::StopScanThread();
}
+ if (GCAdapter::UseAdapter())
+ GCAdapter::StartScanThread();
+ else
+ GCAdapter::StopScanThread();
SConfig::GetInstance().SaveSettings();
}