Explorar o código

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...
QGJ %!s(int64=3) %!d(string=hai) anos
pai
achega
4366a21eae
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/yuzu/applets/qt_profile_select.cpp

+ 1 - 0
src/yuzu/applets/qt_profile_select.cpp

@@ -95,6 +95,7 @@ QtProfileSelectionDialog::QtProfileSelectionDialog(
     scroll_area->setLayout(layout);
 
     connect(tree_view, &QTreeView::clicked, this, &QtProfileSelectionDialog::SelectUser);
+    connect(tree_view, &QTreeView::doubleClicked, this, &QtProfileSelectionDialog::accept);
     connect(controller_navigation, &ControllerNavigation::TriggerKeyboardEvent,
             [this](Qt::Key key) {
                 if (!this->isActiveWindow()) {