Merge pull request #60 from Szybet/master

Update audiodialog.cpp
This commit is contained in:
Nicolas Mailloux 2023-09-09 19:05:42 -04:00 committed by GitHub
commit e6a4869424
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,6 +154,12 @@ void audioDialog::refreshFileList() {
}
// For example in this path: '/mnt/onboard/onboard/music/' (with '/' at the end)
QString path = readFile(".config/e-2-audio/path").replace("\n", "");
// Needed by GUI user apps
if(path.isEmpty()) {
path = "/mnt/onboard/onboard/music/";
}
log("Path for audio files: '" + path + "'", className);
QDir dir{path};
// Other file formats could be added, by building more libraries