diff options
author | Saturneric <[email protected]> | 2021-12-20 13:52:05 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-20 13:52:05 +0000 |
commit | e35ba01111cf700b5369ed93f56539e89531a138 (patch) | |
tree | 78f473e856cd07fa3fccfc143344d2bc173d5214 /src/ui/widgets/KeyList.cpp | |
parent | Update Test Code & Added Standlone Support (diff) | |
download | GpgFrontend-e35ba01111cf700b5369ed93f56539e89531a138.tar.gz GpgFrontend-e35ba01111cf700b5369ed93f56539e89531a138.zip |
Continue to add Standalone Support.
Diffstat (limited to 'src/ui/widgets/KeyList.cpp')
-rw-r--r-- | src/ui/widgets/KeyList.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp index 0e4c5bba..464727dc 100644 --- a/src/ui/widgets/KeyList.cpp +++ b/src/ui/widgets/KeyList.cpp @@ -46,6 +46,17 @@ KeyList::KeyList(bool menu, QWidget* parent) } void KeyList::init() { +#ifdef GPG_STANDALONE_MODE + LOG(INFO) << "GPG_STANDALONE_MODE Enabled"; + auto gpg_path = GpgFrontend::UI::GlobalSettingStation::GetInstance() + .GetStandaloneGpgBinDir(); + auto db_path = GpgFrontend::UI::GlobalSettingStation::GetInstance() + .GetStandaloneDatabaseDir(); + GpgContext::CreateInstance( + _m_key_list_id, std::make_unique<GpgContext>(true, db_path.string(), true, + gpg_path.string())); +#endif + ui->setupUi(this); ui->menuWidget->setHidden(!menu_status); |