From e626b7b4899bf15c36ecaa1545dcab861d433409 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 21 Oct 2015 10:31:08 -0400 Subject: Pause directory refresh operations while the file operation dialog is still active in a lumina-fm instance. --- lumina-fm/DirData.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lumina-fm/DirData.h') 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 -- cgit