Commit 6b3b77e8 authored by 2155X 2155X's avatar 2155X 2155X
Browse files

Fix extraction "Dolphin Actions" not abiding "Open destination folder after extracting" setting.

BUG: 319134
CCBUG: 298248
parent 4e1e01ad
Pipeline #106540 failed with stage
in 2 minutes and 44 seconds
......@@ -14,6 +14,7 @@
#include <KLocalizedString>
#include <KPluginFactory>
#include "settings.h"
#include "mimetypes.h"
#include "pluginmanager.h"
#include "batchextract.h"
......@@ -96,7 +97,7 @@ QAction *ExtractFileItemAction::createAction(const QIcon& icon, const QString& n
connect(action, &QAction::triggered, this, [urls,name, option, parent,this]() {
auto *batchExtractJob = new BatchExtract(parent);
batchExtractJob->setDestinationFolder(QFileInfo(urls.first().toLocalFile()).path());
batchExtractJob->setOpenDestinationAfterExtraction(true);
batchExtractJob->setOpenDestinationAfterExtraction(ArkSettings::openDestinationFolderAfterExtraction());
if (option == AutoSubfolder) {
batchExtractJob->setAutoSubfolder(true);
} else if (option == ShowDialog) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment