From 1f50bb29f428672cb38f2e9e068f99711f67f38b Mon Sep 17 00:00:00 2001 From: elecpower Date: Sun, 4 Sep 2022 22:56:08 +1000 Subject: [PATCH] Disable Manuals and other Documents menu action --- companion/src/mainwindow.cpp | 8 ++++---- companion/src/mainwindow.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/companion/src/mainwindow.cpp b/companion/src/mainwindow.cpp index 8e2ce6dc9..a98cd5f3c 100644 --- a/companion/src/mainwindow.cpp +++ b/companion/src/mainwindow.cpp @@ -825,7 +825,7 @@ void MainWindow::retranslateUi(bool showMsg) trAct(writeFlashAct, tr("Write Firmware to Radio"), tr("Write firmware to Radio")); trAct(sdsyncAct, tr("Synchronize SD"), tr("SD card synchronization")); - trAct(openDocURLAct, tr("Manuals and other Documents"), tr("Open the EdgeTX document page in a web browser")); + //trAct(openDocURLAct, tr("Manuals and other Documents"), tr("Open the EdgeTX document page in a web browser")); trAct(writeSettingsAct, tr("Write Models and Settings To Radio"), tr("Write Models and Settings to Radio")); trAct(readSettingsAct, tr("Read Models and Settings From Radio"), tr("Read Models and Settings from Radio")); trAct(burnConfigAct, tr("Configure Communications..."), tr("Configure software for communicating with the Radio")); @@ -904,7 +904,7 @@ void MainWindow::createActions() manualChkForUpdAct = addAct("update.png", SLOT(manualCheckForUpdates())); aboutAct = addAct("information.png", SLOT(about())); - openDocURLAct = addAct("changelog.png", SLOT(openDocURL())); + //openDocURLAct = addAct("changelog.png", SLOT(openDocURL())); changelogAct = addAct("changelog.png", SLOT(changelog())); // these two get assigned menus in createMenus() @@ -914,8 +914,8 @@ void MainWindow::createActions() exitAct->setMenuRole(QAction::QuitRole); aboutAct->setMenuRole(QAction::AboutRole); appPrefsAct->setMenuRole(QAction::PreferencesRole); - openDocURLAct->setMenuRole(QAction::ApplicationSpecificRole); - manualChkForUpdAct->setMenuRole(QAction::ApplicationSpecificRole); + //openDocURLAct->setMenuRole(QAction::ApplicationSpecificRole); + //manualChkForUpdAct->setMenuRole(QAction::ApplicationSpecificRole); changelogAct->setMenuRole(QAction::ApplicationSpecificRole); actTabbedWindows->setCheckable(true); diff --git a/companion/src/mainwindow.h b/companion/src/mainwindow.h index 612d3c153..219a4cc3f 100644 --- a/companion/src/mainwindow.h +++ b/companion/src/mainwindow.h @@ -199,7 +199,7 @@ class MainWindow : public QMainWindow QAction *deleteProfileAct; QAction *exportSettingsAct; QAction *importSettingsAct; - QAction *openDocURLAct; + //QAction *openDocURLAct; QAction *actTabbedWindows; QAction *actTileWindows; QAction *actCascadeWindows;