aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorq5sys <jt@xsystems.com>2017-11-17 11:30:06 -0500
committerq5sys <jt@xsystems.com>2017-11-17 11:30:06 -0500
commit1f568882de3997b5567d6c5255c13f8cd909f74a (patch)
treea8ea59971a2d97d0ea5914f2f3ff5878a7167e53 /src-qt5
parentFix the pkg-plist for lumina-core. (diff)
downloadlumina-1f568882de3997b5567d6c5255c13f8cd909f74a.tar.gz
lumina-1f568882de3997b5567d6c5255c13f8cd909f74a.tar.bz2
lumina-1f568882de3997b5567d6c5255c13f8cd909f74a.zip
re-implement zip/iso autoextraction in lumina-fm
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
index 66c4c237..b778b49c 100644
--- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
@@ -577,7 +577,14 @@ void DirWidget::UpdateContextMenu(){
}
if(LUtils::isValidBinary("lumina-archiver") && sel.length() >=1 && canmodify){
cArchiveMenu->clear();
- if(sel.length()==1 && XDGMime::fromFileName(sel[0]).endsWith("-tar") ){
+ if(sel.length()==1 && ( XDGMime::fromFileName(sel[0]).endsWith("-tar") ||
+ XDGMime::fromFileName(sel[0]).endsWith("-image") ||
+ ( XDGMime::fromFileName(sel[0]).contains("zip") &&
+ !XDGMime::fromFileName(sel[0]).endsWith("epub+zip") &&
+ !XDGMime::fromFileName(sel[0]).endsWith("vnd.comicbook+zip" )
+ )
+ )
+ ){
cArchiveMenu->addAction(LXDG::findIcon("archive",""), tr("Extract Here"), this, SLOT(autoExtractFiles()), kExtract->key() );
}else{
cArchiveMenu->addAction(LXDG::findIcon("archive",""), tr("Archive Selection"), this, SLOT(autoArchiveFiles()), kArchive->key() );
bgstack15