aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-archiver/MainUI.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-archiver/MainUI.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp b/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp
index afead9af..9d220824 100644
--- a/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp
+++ b/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp
@@ -72,9 +72,11 @@ MainUI::~MainUI(){
void MainUI::LoadArguments(QStringList args){
bool burnIMG = false;
bool autoExtract = false;
+ //bool autoArchive = false;
for(int i=0; i<args.length(); i++){
if(args[i]=="--burn-img"){ burnIMG = true; continue; }
if(args[i]=="--ax"){ autoExtract = true; continue; }
+ //if(args[i]=="--aa"){ autoArchive = true; continue; }
if(QFile::exists(args[i])){
ui->label_progress->setText(tr("Opening Archive..."));
if(autoExtract){
@@ -86,6 +88,14 @@ void MainUI::LoadArguments(QStringList args){
if(burnIMG){ BurnImgToUSB(); } //Go ahead and launch the burn dialog right away
break;
}
+ //if(autoArchive){
+ //get rest of arguments
+ //for(int i=1; i<args.length(); i++){
+ // aaFileList << args[i];}
+ // now launch autoarchive method with arg list
+ // autoArchiveFiles(aaFileList);
+ // connect(BACKEND, SIGNAL(ArchivalSuccessful()), this, SLOT(close()) );
+ //}
}
}
@@ -252,6 +262,10 @@ void MainUI::autoextractFiles(){
BACKEND->startExtract(dir, true);
}
+/*
+void MainUI::autoArchiveFiles(aaFileList){
+*/
+
void MainUI::extractSelection(){
if(ui->tree_contents->currentItem()==0){ return; } //nothing selected
QList<QTreeWidgetItem*> sel = ui->tree_contents->selectedItems();
bgstack15