diff options
author | saturneric <[email protected]> | 2023-12-06 13:10:48 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-06 13:18:07 +0000 |
commit | a0f0fd98efa12ef33959badcc25ff568e8b242b4 (patch) | |
tree | 860563fdbfe353e57724b08c4eb30dc03d5f8a7d /src/ui/main_window/MainWindowFileSlotFunction.cpp | |
parent | feat: convert basic opera to async style (diff) | |
download | GpgFrontend-a0f0fd98efa12ef33959badcc25ff568e8b242b4.tar.gz GpgFrontend-a0f0fd98efa12ef33959badcc25ff568e8b242b4.zip |
feat: move test to src and add submodule googletest
Diffstat (limited to 'src/ui/main_window/MainWindowFileSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowFileSlotFunction.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ui/main_window/MainWindowFileSlotFunction.cpp b/src/ui/main_window/MainWindowFileSlotFunction.cpp index be0e8efe..e7a25396 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 = kGpgfrontendDefaultChannel; + auto _channel = kGpgFrontendDefaultChannel; auto _extension = ".asc"; if (non_ascii_when_export || file_info.isDir()) { - _channel = kGpgfrontendNonAsciiChannel; + _channel = kGpgFrontendNonAsciiChannel; _extension = ".gpg"; } @@ -391,10 +391,10 @@ void MainWindow::SlotFileSign() { GlobalSettingStation::GetInstance().LookupSettings( "general.non_ascii_when_export", true); - auto _channel = kGpgfrontendDefaultChannel; + auto _channel = kGpgFrontendDefaultChannel; auto _extension = ".asc"; if (non_ascii_when_export) { - _channel = kGpgfrontendNonAsciiChannel; + _channel = kGpgFrontendNonAsciiChannel; _extension = ".sig"; } @@ -464,9 +464,9 @@ void MainWindow::SlotFileVerify() { GlobalSettingStation::GetInstance().LookupSettings( "general.non_ascii_when_export", true); - auto _channel = kGpgfrontendDefaultChannel; + auto _channel = kGpgFrontendDefaultChannel; if (non_ascii_when_export) { - _channel = kGpgfrontendNonAsciiChannel; + _channel = kGpgFrontendNonAsciiChannel; } if (in_path.extension() == ".gpg") { @@ -579,10 +579,10 @@ void MainWindow::SlotFileEncryptSign() { path = path + (file_info.isDir() ? ".tar" : ""); } - auto channel = kGpgfrontendDefaultChannel; + auto channel = kGpgFrontendDefaultChannel; const auto* extension = ".asc"; if (non_ascii_when_export || file_info.isDir()) { - channel = kGpgfrontendNonAsciiChannel; + channel = kGpgFrontendNonAsciiChannel; extension = ".gpg"; } |