aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/DirData.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-21 10:31:08 -0400
committerKen Moore <moorekou@gmail.com>2015-10-21 10:31:08 -0400
commite626b7b4899bf15c36ecaa1545dcab861d433409 (patch)
tree1c77cf5616f2421fe0ed60bcd1cb6ba3cd0c1a02 /lumina-fm/DirData.h
parentWhen loading a wallpaper file - allow any of the currently-supported image fo... (diff)
downloadlumina-e626b7b4899bf15c36ecaa1545dcab861d433409.tar.gz
lumina-e626b7b4899bf15c36ecaa1545dcab861d433409.tar.bz2
lumina-e626b7b4899bf15c36ecaa1545dcab861d433409.zip
Pause directory refresh operations while the file operation dialog is still active in a lumina-fm instance.
Diffstat (limited to 'lumina-fm/DirData.h')
-rw-r--r--lumina-fm/DirData.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lumina-fm/DirData.h b/lumina-fm/DirData.h
index cd5db81a..e759a17a 100644
--- a/lumina-fm/DirData.h
+++ b/lumina-fm/DirData.h
@@ -107,16 +107,19 @@ public:
//Variables
bool showHidden; //Whether hidden files/dirs should be output
bool zfsavailable; //Whether it should even bother looking for ZFS snapshots
+ bool pauseData; //When paused - this will ignore any requests for information (need to manually refresh browsers after unpause)
//Functions
DirData(){
showHidden = false;
zfsavailable = false;
+ pauseData = false;
}
~DirData(){}
-
+
public slots:
void GetDirData(QString ID, QString dirpath){
+ if(pauseData){ return; }
if(DIR_DEBUG){ qDebug() << "GetDirData:" << ID << dirpath; }
//The ID is used when returning the info in a moment
//Make sure to use the canonical path in the HASH search - don't use
@@ -137,6 +140,7 @@ public slots:
}
void GetSnapshotData(QString ID, QString dirpath){
+ if(pauseData){ return; }
if(DIR_DEBUG){ qDebug() << "GetSnapshotData:" << ID << dirpath; }
QString base; QStringList snaps;
//Only check if ZFS is flagged as available
bgstack15