aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/MainUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-fm/MainUI.cpp')
-rw-r--r--lumina-fm/MainUI.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp
index a7043195..d0684368 100644
--- a/lumina-fm/MainUI.cpp
+++ b/lumina-fm/MainUI.cpp
@@ -471,6 +471,12 @@ void MainUI::setCurrentDir(QString dir){
}
QFileInfoList fileList = fsmod->rootDirectory().entryInfoList();
QString msgStatusBar = ItemsInstatusBar(fileList, tr("Items"));
+ //3 following lines should be in LOS
+ QStringList mountInfo = LUtils::getCmdOutput("df " + dir);
+ QString::SectionFlag skipEmpty = QString::SectionSkipEmpty;
+ QString capacity = mountInfo[1].section(" ",4,4, skipEmpty);
+ if (msgStatusBar.isEmpty()) msgStatusBar += tr("Capacity: ") + capacity;
+ else msgStatusBar += tr(", Capacity: ") + capacity;
if (!msgStatusBar.isEmpty()) ui->statusbar->showMessage(msgStatusBar);
ui->tool_addToDir->setVisible(isUserWritable);
bgstack15