Feature/toggle groups panel option (#5247)

* Closes #5243
This commit is contained in:
Carlos E. Salazar
2020-10-09 04:52:30 +02:00
committed by GitHub
parent 34b44e7496
commit fa546c440e
7 changed files with 32 additions and 1 deletions

View File

@@ -1792,6 +1792,11 @@ void MainWindow::initViewMenu()
applySettingsChanges();
});
m_ui->actionShowGroupsPanel->setChecked(!config()->get(Config::GUI_HideGroupsPanel).toBool());
connect(m_ui->actionShowGroupsPanel, &QAction::toggled, this, [](bool checked) {
config()->set(Config::GUI_HideGroupsPanel, !checked);
});
m_ui->actionShowPreviewPanel->setChecked(!config()->get(Config::GUI_HidePreviewPanel).toBool());
connect(m_ui->actionShowPreviewPanel, &QAction::toggled, this, [](bool checked) {
config()->set(Config::GUI_HidePreviewPanel, !checked);