mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Removed redundant argument from ReceiptCreditsBox.
This commit is contained in:
parent
f2f85a9083
commit
4760337958
6 changed files with 1 additions and 9 deletions
|
@ -357,7 +357,6 @@ void InnerWidget::fillHistory() {
|
|||
controller->uiShow()->show(Box(
|
||||
::Settings::ReceiptCreditsBox,
|
||||
controller,
|
||||
premiumBot.get(),
|
||||
e));
|
||||
};
|
||||
|
||||
|
|
|
@ -1408,7 +1408,6 @@ void InnerWidget::fill() {
|
|||
show->show(Box(
|
||||
::Settings::ReceiptCreditsBox,
|
||||
controller,
|
||||
premiumBot.get(),
|
||||
e));
|
||||
};
|
||||
|
||||
|
|
|
@ -102,7 +102,6 @@ void ProcessCreditsReceipt(
|
|||
controller->uiShow()->show(Box(
|
||||
Settings::ReceiptCreditsBox,
|
||||
controller,
|
||||
nullptr,
|
||||
entry));
|
||||
controller->window().activate();
|
||||
}
|
||||
|
|
|
@ -154,7 +154,6 @@ void Credits::setupSubscriptions(not_null<Ui::VerticalLayout*> container) {
|
|||
controller->uiShow()->show(Box(
|
||||
ReceiptCreditsBox,
|
||||
controller,
|
||||
nullptr,
|
||||
e));
|
||||
};
|
||||
|
||||
|
@ -285,7 +284,6 @@ void Credits::setupHistory(not_null<Ui::VerticalLayout*> container) {
|
|||
controller->uiShow()->show(Box(
|
||||
ReceiptCreditsBox,
|
||||
controller,
|
||||
premiumBot.get(),
|
||||
e));
|
||||
};
|
||||
|
||||
|
|
|
@ -440,7 +440,6 @@ not_null<Ui::RpWidget*> AddBalanceWidget(
|
|||
void ReceiptCreditsBox(
|
||||
not_null<Ui::GenericBox*> box,
|
||||
not_null<Window::SessionController*> controller,
|
||||
PeerData *premiumBot,
|
||||
const Data::CreditsHistoryEntry &e) {
|
||||
box->setStyle(st::giveawayGiftCodeBox);
|
||||
box->setNoContentMargin(true);
|
||||
|
@ -771,7 +770,7 @@ void GiftedCreditsBox(
|
|||
const auto anonymous = from->isServiceUser();
|
||||
const auto peer = received ? from : to;
|
||||
using PeerType = Data::CreditsHistoryEntry::PeerType;
|
||||
Settings::ReceiptCreditsBox(box, controller, nullptr, {
|
||||
Settings::ReceiptCreditsBox(box, controller, {
|
||||
.id = QString(),
|
||||
.title = (received
|
||||
? tr::lng_credits_box_history_entry_gift_name
|
||||
|
@ -809,7 +808,6 @@ void ShowRefundInfoBox(
|
|||
controller->show(Box(
|
||||
::Settings::ReceiptCreditsBox,
|
||||
controller,
|
||||
nullptr, // premiumBot
|
||||
info));
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,6 @@ void AddWithdrawalWidget(
|
|||
void ReceiptCreditsBox(
|
||||
not_null<Ui::GenericBox*> box,
|
||||
not_null<Window::SessionController*> controller,
|
||||
PeerData *premiumBot,
|
||||
const Data::CreditsHistoryEntry &e);
|
||||
void GiftedCreditsBox(
|
||||
not_null<Ui::GenericBox*> box,
|
||||
|
|
Loading…
Add table
Reference in a new issue