فهرست منبع

debugger: controller: Add access key

Adds the access key to the Controller P1 selection at View -> Debugger
-> Controller P1. Avoids using the windowTitle as that would add a
literal & to the beginning of the window title.
lat9nq 5 سال پیش
والد
کامیت
6269cd7f1d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/yuzu/debugger/controller.cpp

+ 1 - 1
src/yuzu/debugger/controller.cpp

@@ -42,7 +42,7 @@ void ControllerDialog::refreshConfiguration() {
 
 
 QAction* ControllerDialog::toggleViewAction() {
 QAction* ControllerDialog::toggleViewAction() {
     if (toggle_view_action == nullptr) {
     if (toggle_view_action == nullptr) {
-        toggle_view_action = new QAction(windowTitle(), this);
+        toggle_view_action = new QAction(tr("&Controller P1"), this);
         toggle_view_action->setCheckable(true);
         toggle_view_action->setCheckable(true);
         toggle_view_action->setChecked(isVisible());
         toggle_view_action->setChecked(isVisible());
         connect(toggle_view_action, &QAction::toggled, this, &ControllerDialog::setVisible);
         connect(toggle_view_action, &QAction::toggled, this, &ControllerDialog::setVisible);