mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Don't autodownload files if sandbox prevents it.
Partially fixes #25308.
This commit is contained in:
@@ -1118,7 +1118,7 @@ bool DocumentData::saveFromData() {
|
||||
|
||||
bool DocumentData::saveFromDataSilent() {
|
||||
return !filepath(true).isEmpty()
|
||||
|| (!Core::App().settings().askDownloadPath()
|
||||
|| (Core::App().canSaveFileWithoutAskingForPath()
|
||||
&& saveFromDataChecked());
|
||||
}
|
||||
|
||||
|
@@ -291,7 +291,7 @@ void DocumentMedia::automaticLoad(
|
||||
return;
|
||||
}
|
||||
const auto toCache = _owner->saveToCache();
|
||||
if (!toCache && Core::App().settings().askDownloadPath()) {
|
||||
if (!toCache && !Core::App().canSaveFileWithoutAskingForPath()) {
|
||||
// We need a filename, but we're supposed to ask user for it.
|
||||
// No automatic download in this case.
|
||||
return;
|
||||
|
Reference in New Issue
Block a user