aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/Browser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/Browser.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/Browser.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/Browser.cpp b/src-qt5/desktop-utils/lumina-fm/Browser.cpp
index 0aeb5648..b207604c 100644
--- a/src-qt5/desktop-utils/lumina-fm/Browser.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/Browser.cpp
@@ -17,6 +17,8 @@ Browser::~Browser(){
watcher->deleteLater();
}
+QString Browser::currentDirectory(){ return currentDir; }
+
void Browser::showHiddenFiles(bool show){
if(show !=showHidden){
showHidden = show;
@@ -24,7 +26,7 @@ void Browser::showHiddenFiles(bool show){
}
}
bool Browser::showingHiddenFiles(){
-
+ return showHidden;
}
// PRIVATE
@@ -45,12 +47,14 @@ void Browser::loadItem(QFileInfo info){
}
// PRIVATE SLOTS
-void Browser::fileChanged(QString){
-
+void Browser::fileChanged(QString file){
+ if(file.startsWith(currentDir+"/")){ emit itemUpdated(file); }
+ else if(file==currentDir){ QTimer::singleShot(0, this, SLOT(loadDirectory()) ); }
}
-void Browser::dirChanged(QString){
-
+void Browser::dirChanged(QString dir){
+ if(dir==currentDir){ QTimer::singleShot(0, this, SLOT(loadDirectory()) ); }
+ else if(dir.startsWith(currentDir)){ emit itemUpdated(dir); }
}
// PUBLIC SLOTS
bgstack15