diff options
author | Saturneric <[email protected]> | 2021-11-30 13:25:18 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-11-30 13:35:37 +0000 |
commit | 69a90eae4a2ea0c7eee89cf11d4b96401ba2466d (patch) | |
tree | f7a2f8bed06ae30038e6cba5e987e01f02a8e5e8 /src/ui/main_window/MainWindowUI.cpp | |
parent | Project Structure Modified (diff) | |
download | GpgFrontend-69a90eae4a2ea0c7eee89cf11d4b96401ba2466d.tar.gz GpgFrontend-69a90eae4a2ea0c7eee89cf11d4b96401ba2466d.zip |
Add & Modified
1. Modified macro system.
2. Introduce new settings framework.
3. Modified part of the code of MainWindow to meet with the new settings
framework.
Diffstat (limited to 'src/ui/main_window/MainWindowUI.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowUI.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/main_window/MainWindowUI.cpp b/src/ui/main_window/MainWindowUI.cpp index 44fed8dc..cf5d1172 100644 --- a/src/ui/main_window/MainWindowUI.cpp +++ b/src/ui/main_window/MainWindowUI.cpp @@ -365,10 +365,12 @@ void MainWindow::createMenus() { steganoMenu->addAction(cutPgpHeaderAct); steganoMenu->addAction(addPgpHeaderAct); +#ifdef ADVANCED_SUPPORT // Hide menu, when steganography menu is disabled in settings if (!settings.value("advanced/steganography").toBool()) { this->menuBar()->removeAction(steganoMenu->menuAction()); } +#endif viewMenu = menuBar()->addMenu(tr("&View")); |