aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowFileSlotFunction.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-10-30 06:52:29 +0000
committersaturneric <[email protected]>2023-10-30 06:52:29 +0000
commit5d7b1d5493df8723259eca0613a9ce0af6077289 (patch)
tree12c0c820e956a1182d21d5897dc85610732767fd /src/ui/main_window/MainWindowFileSlotFunction.cpp
parentchore: add project infos in cmake config file (diff)
downloadGpgFrontend-5d7b1d5493df8723259eca0613a9ce0af6077289.tar.gz
GpgFrontend-5d7b1d5493df8723259eca0613a9ce0af6077289.zip
style: improve code style of core
Diffstat (limited to 'src/ui/main_window/MainWindowFileSlotFunction.cpp')
-rw-r--r--src/ui/main_window/MainWindowFileSlotFunction.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ui/main_window/MainWindowFileSlotFunction.cpp b/src/ui/main_window/MainWindowFileSlotFunction.cpp
index 5a7f5e34..be0e8efe 100644
--- a/src/ui/main_window/MainWindowFileSlotFunction.cpp
+++ b/src/ui/main_window/MainWindowFileSlotFunction.cpp
@@ -183,10 +183,10 @@ void MainWindow::SlotFileEncrypt() {
path = path + (file_info.isDir() ? ".tar" : "");
}
- auto _channel = GPGFRONTEND_DEFAULT_CHANNEL;
+ auto _channel = kGpgfrontendDefaultChannel;
auto _extension = ".asc";
if (non_ascii_when_export || file_info.isDir()) {
- _channel = GPGFRONTEND_NON_ASCII_CHANNEL;
+ _channel = kGpgfrontendNonAsciiChannel;
_extension = ".gpg";
}
@@ -391,10 +391,10 @@ void MainWindow::SlotFileSign() {
GlobalSettingStation::GetInstance().LookupSettings(
"general.non_ascii_when_export", true);
- auto _channel = GPGFRONTEND_DEFAULT_CHANNEL;
+ auto _channel = kGpgfrontendDefaultChannel;
auto _extension = ".asc";
if (non_ascii_when_export) {
- _channel = GPGFRONTEND_NON_ASCII_CHANNEL;
+ _channel = kGpgfrontendNonAsciiChannel;
_extension = ".sig";
}
@@ -464,9 +464,9 @@ void MainWindow::SlotFileVerify() {
GlobalSettingStation::GetInstance().LookupSettings(
"general.non_ascii_when_export", true);
- auto _channel = GPGFRONTEND_DEFAULT_CHANNEL;
+ auto _channel = kGpgfrontendDefaultChannel;
if (non_ascii_when_export) {
- _channel = GPGFRONTEND_NON_ASCII_CHANNEL;
+ _channel = kGpgfrontendNonAsciiChannel;
}
if (in_path.extension() == ".gpg") {
@@ -579,10 +579,10 @@ void MainWindow::SlotFileEncryptSign() {
path = path + (file_info.isDir() ? ".tar" : "");
}
- auto channel = GPGFRONTEND_DEFAULT_CHANNEL;
+ auto channel = kGpgfrontendDefaultChannel;
const auto* extension = ".asc";
if (non_ascii_when_export || file_info.isDir()) {
- channel = GPGFRONTEND_NON_ASCII_CHANNEL;
+ channel = kGpgfrontendNonAsciiChannel;
extension = ".gpg";
}