mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Add error display on link sharing.
This commit is contained in:
parent
ce84d9c84d
commit
bbeb9d3950
4 changed files with 6 additions and 6 deletions
|
@ -570,13 +570,13 @@ void LeaveBox(
|
||||||
|
|
||||||
void ConfirmBox(
|
void ConfirmBox(
|
||||||
not_null<Ui::GenericBox*> box,
|
not_null<Ui::GenericBox*> box,
|
||||||
const QString &text,
|
const TextWithEntities &text,
|
||||||
rpl::producer<QString> button,
|
rpl::producer<QString> button,
|
||||||
Fn<void()> callback) {
|
Fn<void()> callback) {
|
||||||
box->addRow(
|
box->addRow(
|
||||||
object_ptr<Ui::FlatLabel>(
|
object_ptr<Ui::FlatLabel>(
|
||||||
box.get(),
|
box.get(),
|
||||||
text,
|
rpl::single(text),
|
||||||
st::groupCallBoxLabel),
|
st::groupCallBoxLabel),
|
||||||
st::boxPadding);
|
st::boxPadding);
|
||||||
if (callback) {
|
if (callback) {
|
||||||
|
|
|
@ -34,7 +34,7 @@ void LeaveBox(
|
||||||
|
|
||||||
void ConfirmBox(
|
void ConfirmBox(
|
||||||
not_null<Ui::GenericBox*> box,
|
not_null<Ui::GenericBox*> box,
|
||||||
const QString &text,
|
const TextWithEntities &text,
|
||||||
rpl::producer<QString> button,
|
rpl::producer<QString> button,
|
||||||
Fn<void()> callback);
|
Fn<void()> callback);
|
||||||
|
|
||||||
|
|
|
@ -825,7 +825,7 @@ void GroupPanel::addMembers() {
|
||||||
};
|
};
|
||||||
auto box = Box(
|
auto box = Box(
|
||||||
Group::ConfirmBox,
|
Group::ConfirmBox,
|
||||||
text,
|
TextWithEntities{ text },
|
||||||
tr::lng_participant_invite(),
|
tr::lng_participant_invite(),
|
||||||
[=] { inviteWithAdd(users, nonMembers, finishWithConfirm); });
|
[=] { inviteWithAdd(users, nonMembers, finishWithConfirm); });
|
||||||
*shared = box.data();
|
*shared = box.data();
|
||||||
|
|
|
@ -149,8 +149,8 @@ object_ptr<ShareBox> ShareInviteLinkBox(
|
||||||
}
|
}
|
||||||
text.append(error.first);
|
text.append(error.first);
|
||||||
if (const auto weak = *box) {
|
if (const auto weak = *box) {
|
||||||
//weak->getDelegate()->show(
|
weak->getDelegate()->show(
|
||||||
// Box(ConfirmBox, text, nullptr, nullptr));
|
Box(ConfirmBox, text, nullptr, nullptr));
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue