mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Hide default download folder option if it's not available
This commit is contained in:
@@ -1055,7 +1055,9 @@ void SetupDataStorage(
|
||||
auto pathtext = Core::App().settings().downloadPathValue(
|
||||
) | rpl::map([](const QString &text) {
|
||||
if (text.isEmpty()) {
|
||||
return tr::lng_download_path_default(tr::now);
|
||||
return Core::App().canReadDefaultDownloadPath(true)
|
||||
? tr::lng_download_path_default(tr::now)
|
||||
: tr::lng_download_path_unset(tr::now);
|
||||
} else if (text == FileDialog::Tmp()) {
|
||||
return tr::lng_download_path_temp(tr::now);
|
||||
}
|
||||
|
Reference in New Issue
Block a user