mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Moved ConfirmBox to Ui namespace.
This commit is contained in:
@@ -1040,13 +1040,13 @@ void FileLoadTask::process(Args &&args) {
|
||||
void FileLoadTask::finish() {
|
||||
if (!_result || !_result->filesize || _result->filesize < 0) {
|
||||
Ui::show(
|
||||
Box<InformBox>(
|
||||
Box<Ui::InformBox>(
|
||||
tr::lng_send_image_empty(tr::now, lt_name, _filepath)),
|
||||
Ui::LayerOption::KeepOther);
|
||||
removeFromAlbum();
|
||||
} else if (_result->filesize > kFileSizeLimit) {
|
||||
Ui::show(
|
||||
Box<InformBox>(
|
||||
Box<Ui::InformBox>(
|
||||
tr::lng_send_image_too_large(tr::now, lt_name, _filepath)),
|
||||
Ui::LayerOption::KeepOther);
|
||||
removeFromAlbum();
|
||||
|
Reference in New Issue
Block a user