Skip to content

Commit

Permalink
Make developer tools shortcuttable
Browse files Browse the repository at this point in the history
They weren't yet, unlike the other main window actions.

Sorta relates to #1136.
  • Loading branch information
askmeaboutlo0m committed Aug 18, 2023
1 parent 9dada45 commit 0e764a4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/desktop/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3586,13 +3586,13 @@ void MainWindow::setupActions()
QMenu *toolshortcuts = toolsmenu->addMenu(tr("&Shortcuts"));

QMenu *devtoolsmenu = toolsmenu->addMenu(tr("Developer Tools"));
QAction *tableteventlog = makeAction("tableteventlog");
QAction *profile = makeAction("profile");
QAction *artificialLag = makeAction("artificiallag", tr("Set Artificial Lag..."));
QAction *artificialDisconnect = makeAction("artificialdisconnect", tr("Artifical Disconnect..."));
QAction *debugDump = makeAction("debugdump", tr("Record Debug Dumps")).checkable();
QAction *openDebugDump = makeAction("opendebugdump", tr("Open Debug Dump..."));
QAction *showNetStats = makeAction("shownetstats", tr("Statistics…"));
QAction *tableteventlog = makeAction("tableteventlog", tr("Tablet Event Log...")).noDefaultShortcut();
QAction *profile = makeAction("profile", tr("Profile...")).noDefaultShortcut();
QAction *artificialLag = makeAction("artificiallag", tr("Set Artificial Lag...")).noDefaultShortcut();
QAction *artificialDisconnect = makeAction("artificialdisconnect", tr("Artifical Disconnect...")).noDefaultShortcut();
QAction *debugDump = makeAction("debugdump", tr("Record Debug Dumps")).checkable().noDefaultShortcut();
QAction *openDebugDump = makeAction("opendebugdump", tr("Open Debug Dump...")).noDefaultShortcut();
QAction *showNetStats = makeAction("shownetstats", tr("Statistics…")).noDefaultShortcut();
devtoolsmenu->addAction(tableteventlog);
devtoolsmenu->addAction(profile);
devtoolsmenu->addAction(artificialLag);
Expand Down

0 comments on commit 0e764a4

Please sign in to comment.