mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.34k stars 3.65k forks source link

Add Close Application Button in Select Tool Menu for Touch-Only Devices #12091

Closed NiklasVoigt closed 1 week ago

NiklasVoigt commented 1 week ago

This commit introduces a "Close Application" button to the Select Tool menu in QGroundControl. The addition addresses the need for an accessible close option on touch-only devices that lack a physical keyboard (e.g., Steam Deck). By integrating this button directly into the interface, users can easily exit the application without requiring keyboard input, improving usability on mobile and handheld platforms.

Description

Test Steps

Checklist:

Related Issue

Closes #12066

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AlexisTM commented 1 week ago

This is enabling using the Steam Deck as a controller without wondering how to exit the application. While there is a way on the Steam Deck, it isn't the case if all handheld.

HTRamsey commented 1 week ago

@NiklasVoigt What do you think about using QGroundControl.appName instead of "QGroundControl" so that the name changes with custom builds?

NiklasVoigt commented 1 week ago

@HTRamsey i've changed the name to the variable, works nice.

DonLakeFlyer commented 1 week ago

@AlexisTM It's a bit odd to see this show up on a regular desktop build. But I think the Steam Deck just runs Linux right not android? So we can't just show this on mobile builds. I wonder if making it show up only if the main window is full screen would work?

AlexisTM commented 1 week ago

It just runs on Linux indeed. That would definitely work to prevent it to look strange for other users.

Exit QGC challenge, the new game by the creators of "Exit Vi"!