mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
Moved ConfirmBox to Ui namespace.
This commit is contained in:
@@ -201,7 +201,7 @@ void SessionNavigation::resolveUsername(
|
||||
}).fail([=](const MTP::Error &error) {
|
||||
_resolveRequestId = 0;
|
||||
if (error.code() == 400) {
|
||||
show(Box<InformBox>(
|
||||
show(Box<Ui::InformBox>(
|
||||
tr::lng_username_not_found(tr::now, lt_user, username)));
|
||||
}
|
||||
}).send();
|
||||
@@ -1104,7 +1104,7 @@ void SessionController::startOrJoinGroupCall(
|
||||
GroupCallJoinConfirm confirm) {
|
||||
auto &calls = Core::App().calls();
|
||||
const auto askConfirmation = [&](QString text, QString button) {
|
||||
show(Box<ConfirmBox>(text, button, crl::guard(this, [=] {
|
||||
show(Box<Ui::ConfirmBox>(text, button, crl::guard(this, [=] {
|
||||
Ui::hideLayer();
|
||||
startOrJoinGroupCall(peer, joinHash, GroupCallJoinConfirm::None);
|
||||
})));
|
||||
@@ -1293,7 +1293,7 @@ void SessionController::cancelUploadLayer(not_null<HistoryItem*> item) {
|
||||
session().uploader().unpause();
|
||||
};
|
||||
|
||||
show(Box<ConfirmBox>(
|
||||
show(Box<Ui::ConfirmBox>(
|
||||
tr::lng_selected_cancel_sure_this(tr::now),
|
||||
tr::lng_selected_upload_stop(tr::now),
|
||||
tr::lng_continue(tr::now),
|
||||
|
Reference in New Issue
Block a user