Rework window focus tracking for gamepad navigation

This commit is contained in:
Cameron Gutman
2024-10-18 21:20:56 -05:00
parent 4af9623727
commit b6a3369243
4 changed files with 41 additions and 38 deletions
+4 -8
View File
@@ -76,10 +76,8 @@ Item {
streamSegueErrorDialog.text += "\n\n" + qsTr("This PC's Internet connection is blocking Moonlight. Streaming over the Internet may not work while connected to this network.")
}
if (window.gamepadInputActive) {
// Re-enable GUI gamepad usage now
SdlGamepadKeyNavigation.enable()
}
// Re-enable GUI gamepad usage now
SdlGamepadKeyNavigation.enable()
if (quitAfter) {
if (streamSegueErrorDialog.text) {
@@ -121,10 +119,8 @@ Item {
// Show the toolbar again when popped off the stack
toolBar.visible = true
if (window.gamepadInputActive) {
// Re-enable GUI gamepad usage now
SdlGamepadKeyNavigation.enable()
}
// Re-enable GUI gamepad usage now
SdlGamepadKeyNavigation.enable()
}
StackView.onActivated: {