diff options
author | saturneric <[email protected]> | 2023-10-15 19:47:52 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-15 19:47:52 +0000 |
commit | 7c21fdd97132e63572a6aca6fa0492d2ce74e777 (patch) | |
tree | b60d1a9bb98e44fa1c8e0cce8ab6d56592e32706 /src/ui/dialog/settings/SettingsGeneral.cpp | |
parent | fix: update screenshot of appstream (diff) | |
download | GpgFrontend-7c21fdd97132e63572a6aca6fa0492d2ce74e777.tar.gz GpgFrontend-7c21fdd97132e63572a6aca6fa0492d2ce74e777.zip |
feat: start to add plugin system and do some improve on project configuration
Diffstat (limited to 'src/ui/dialog/settings/SettingsGeneral.cpp')
-rw-r--r-- | src/ui/dialog/settings/SettingsGeneral.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/dialog/settings/SettingsGeneral.cpp b/src/ui/dialog/settings/SettingsGeneral.cpp index be5190dd..6ded4505 100644 --- a/src/ui/dialog/settings/SettingsGeneral.cpp +++ b/src/ui/dialog/settings/SettingsGeneral.cpp @@ -30,7 +30,7 @@ #include "core/GpgContext.h" -#ifdef MULTI_LANG_SUPPORT +#ifdef SUPPORT_MULTI_LANG #include "SettingsDialog.h" #endif @@ -73,7 +73,7 @@ GeneralTab::GeneralTab(QWidget* parent) GlobalSettingStation::GetInstance().GetDataObjectsFilesSize()) .str())); -#ifdef MULTI_LANG_SUPPORT +#ifdef SUPPORT_MULTI_LANG lang_ = SettingsDialog::ListLanguages(); for (const auto& l : lang_) { ui_->langSelectBox->addItem(l); @@ -154,7 +154,7 @@ void GeneralTab::SetSettings() { SPDLOG_ERROR("setting operation error: longer_expiration_date"); } -#ifdef MULTI_LANG_SUPPORT +#ifdef SUPPORT_MULTI_LANG try { std::string lang_key = settings.lookup("general.lang"); QString lang_value = lang_.value(lang_key.c_str()); @@ -225,7 +225,7 @@ void GeneralTab::ApplySettings() { ui_->restoreTextEditorPageCheckBox->isChecked(); } -#ifdef MULTI_LANG_SUPPORT +#ifdef SUPPORT_MULTI_LANG if (!general.exists("lang")) general.add("lang", libconfig::Setting::TypeBoolean) = lang_.key(ui_->langSelectBox->currentText()).toStdString(); @@ -244,7 +244,7 @@ void GeneralTab::ApplySettings() { } } -#ifdef MULTI_LANG_SUPPORT +#ifdef SUPPORT_MULTI_LANG void GeneralTab::slot_language_changed() { emit SignalRestartNeeded(true); } #endif |