mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-24 08:51:21 -08:00
yuzu/applets/qt_profile_select: connect double-click to accept()
In the profile selection window: Allow the user to start the game by double-clicking a profile to avoid having to additionally click the OK button. This avoids an unnecessary "step" to the start of the game...
This commit is contained in:
parent
1166ca3a57
commit
4366a21eae
@ -95,6 +95,7 @@ QtProfileSelectionDialog::QtProfileSelectionDialog(
|
|||||||
scroll_area->setLayout(layout);
|
scroll_area->setLayout(layout);
|
||||||
|
|
||||||
connect(tree_view, &QTreeView::clicked, this, &QtProfileSelectionDialog::SelectUser);
|
connect(tree_view, &QTreeView::clicked, this, &QtProfileSelectionDialog::SelectUser);
|
||||||
|
connect(tree_view, &QTreeView::doubleClicked, this, &QtProfileSelectionDialog::accept);
|
||||||
connect(controller_navigation, &ControllerNavigation::TriggerKeyboardEvent,
|
connect(controller_navigation, &ControllerNavigation::TriggerKeyboardEvent,
|
||||||
[this](Qt::Key key) {
|
[this](Qt::Key key) {
|
||||||
if (!this->isActiveWindow()) {
|
if (!this->isActiveWindow()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user