mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
Fix brown-paper-bag bug in 948910bfa2
This commit is contained in:
+13
-3
@@ -198,15 +198,25 @@ GridView {
|
|||||||
stackView.push(segue)
|
stackView.push(segue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
// Only allow clicking on the box art for non-running games.
|
||||||
|
// For running games, buttons will appear to resume or quit which
|
||||||
|
// will handle starting the game and clicks on the box art will
|
||||||
|
// be ignored.
|
||||||
|
if (!model.running) {
|
||||||
|
launchOrResumeSelectedApp()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Keys.onReturnPressed: {
|
Keys.onReturnPressed: {
|
||||||
|
// Open the app context menu if activated via the gamepad or keyboard
|
||||||
|
// for running games. If the game isn't running, the above onClicked
|
||||||
|
// method will handle the launch.
|
||||||
if (model.running) {
|
if (model.running) {
|
||||||
// This will be keyboard/gamepad driven so use
|
// This will be keyboard/gamepad driven so use
|
||||||
// open() instead of popup()
|
// open() instead of popup()
|
||||||
appContextMenu.open()
|
appContextMenu.open()
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
launchOrResumeSelectedApp()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Keys.onMenuPressed: {
|
Keys.onMenuPressed: {
|
||||||
|
|||||||
Reference in New Issue
Block a user