diff options
author | Jonathan White <support@dmapps.us> | 2020-06-28 17:01:24 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2020-06-28 23:21:50 +0300 |
commit | 4bf6d8d94dd8cf16e5714a922103b73abe1e1ff5 (patch) | |
tree | 9ad0e6bdf037f8be843069513c2d75e99d2e427a /src/gui/EntryPreviewWidget.cpp | |
parent | 1dd758c66a29bb9c6253c66a66ef1abc78c6acf7 (diff) |
Introduce View Menu
* Move user interface settings from the settings widget into the view menu.
* Add auto-restart prompt to make theme changes easy
Diffstat (limited to 'src/gui/EntryPreviewWidget.cpp')
-rw-r--r-- | src/gui/EntryPreviewWidget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/EntryPreviewWidget.cpp b/src/gui/EntryPreviewWidget.cpp index eee1dd00d..b873800a8 100644 --- a/src/gui/EntryPreviewWidget.cpp +++ b/src/gui/EntryPreviewWidget.cpp @@ -77,6 +77,12 @@ EntryPreviewWidget::EntryPreviewWidget(QWidget* parent) connect(m_ui->entryTabWidget, SIGNAL(tabBarClicked(int)), SLOT(updateTabIndexes()), Qt::QueuedConnection); connect(&m_totpTimer, SIGNAL(timeout()), SLOT(updateTotpLabel())); + connect(config(), &Config::changed, this, [this](Config::ConfigKey key) { + if (key == Config::GUI_HidePreviewPanel) { + setVisible(!config()->get(Config::GUI_HidePreviewPanel).toBool()); + } + }); + // Group m_ui->groupCloseButton->setIcon(resources()->icon("dialog-close")); connect(m_ui->groupCloseButton, SIGNAL(clicked()), SLOT(hide())); |