Skip to content

Commit

Permalink
Fix extraction "Dolphin Actions" not abiding "Open destination folder…
Browse files Browse the repository at this point in the history
… after extracting" setting.

BUG: 319134
CCBUG: 298248


(cherry picked from commit 6b3b77e)
  • Loading branch information
2155X authored and Pointedstick committed Dec 17, 2021
1 parent 37d1dfa commit 015bdfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/extractfileitemaction.cpp
Expand Up @@ -14,6 +14,7 @@
#include <KLocalizedString>
#include <KPluginFactory>

#include "settings.h"
#include "mimetypes.h"
#include "pluginmanager.h"
#include "batchextract.h"
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 015bdfd

Please sign in to comment.