mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-29 08:47:52 +00:00
Allow selecting export folder.
This commit is contained in:
@@ -232,11 +232,12 @@ bool Controller::normalizePath() {
|
||||
};
|
||||
QDir folder(_settings.path);
|
||||
const auto path = folder.absolutePath();
|
||||
_settings.path = path + '/';
|
||||
_settings.path = path.endsWith('/') ? path : (path + '/');
|
||||
if (!folder.exists()) {
|
||||
return check();
|
||||
}
|
||||
const auto list = folder.entryInfoList();
|
||||
const auto mode = QDir::AllEntries | QDir::NoDotAndDotDot;
|
||||
const auto list = folder.entryInfoList(mode);
|
||||
if (list.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user