aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindow.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2023-07-13 07:39:41 +0000
committerSaturneric <[email protected]>2023-07-13 07:39:41 +0000
commit77838db2af8dc4d665cb4dc3d6b30e6d58683091 (patch)
tree62c1bd7251bfc52b6a72f1814093782a0c214231 /src/ui/main_window/MainWindow.cpp
parentfeat: support instant flush when save cache (diff)
downloadGpgFrontend-77838db2af8dc4d665cb4dc3d6b30e6d58683091.tar.gz
GpgFrontend-77838db2af8dc4d665cb4dc3d6b30e6d58683091.zip
feat: support searching keys
Diffstat (limited to 'src/ui/main_window/MainWindow.cpp')
-rw-r--r--src/ui/main_window/MainWindow.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/main_window/MainWindow.cpp b/src/ui/main_window/MainWindow.cpp
index 486cb47a..c31abeff 100644
--- a/src/ui/main_window/MainWindow.cpp
+++ b/src/ui/main_window/MainWindow.cpp
@@ -35,6 +35,7 @@
#include "ui/UserInterfaceUtils.h"
#include "ui/struct/SettingsObject.h"
#include "ui/thread/VersionCheckTask.h"
+#include "widgets/KeyList.h"
namespace GpgFrontend::UI {
@@ -53,8 +54,10 @@ void MainWindow::Init() noexcept {
setCentralWidget(edit_);
/* the list of Keys available*/
- m_key_list_ = new KeyList(
- KeyMenuAbility::REFRESH | KeyMenuAbility::UNCHECK_ALL, this);
+ m_key_list_ =
+ new KeyList(KeyMenuAbility::REFRESH | KeyMenuAbility::UNCHECK_ALL |
+ KeyMenuAbility::SEARCH_BAR,
+ this);
info_board_ = new InfoBoardWidget(this);