mirror of https://github.com/procxx/kepka.git
Remove error box on download start failure.
This commit is contained in:
parent
90f4187ca9
commit
b44cf4a094
|
@ -1636,12 +1636,15 @@ void MainWidget::documentLoadFailed(FileLoader *loader, bool started) {
|
||||||
if (document) document->save(failedFileName);
|
if (document) document->save(failedFileName);
|
||||||
})));
|
})));
|
||||||
} else {
|
} else {
|
||||||
Ui::show(Box<ConfirmBox>(lang(lng_download_path_failed), lang(lng_download_path_settings), crl::guard(this, [=] {
|
// Sometimes we have LOCATION_INVALID error in documents / stickers.
|
||||||
Global::SetDownloadPath(QString());
|
// Sometimes FILE_REFERENCE_EXPIRED could not be handled.
|
||||||
Global::SetDownloadPathBookmark(QByteArray());
|
//
|
||||||
Ui::show(Box<DownloadPathBox>());
|
//Ui::show(Box<ConfirmBox>(lang(lng_download_path_failed), lang(lng_download_path_settings), crl::guard(this, [=] {
|
||||||
Global::RefDownloadPathChanged().notify();
|
// Global::SetDownloadPath(QString());
|
||||||
})));
|
// Global::SetDownloadPathBookmark(QByteArray());
|
||||||
|
// Ui::show(Box<DownloadPathBox>());
|
||||||
|
// Global::RefDownloadPathChanged().notify();
|
||||||
|
//})));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (document) {
|
if (document) {
|
||||||
|
|
Loading…
Reference in New Issue