mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Replaced Info::Controller with navigation in box for giveaway creation.
This commit is contained in:
parent
6a43f2e508
commit
07c5e6542b
2 changed files with 7 additions and 7 deletions
|
@ -237,13 +237,13 @@ void AddPremiumTopBarWithDefaultTitleBar(
|
||||||
|
|
||||||
void CreateGiveawayBox(
|
void CreateGiveawayBox(
|
||||||
not_null<Ui::GenericBox*> box,
|
not_null<Ui::GenericBox*> box,
|
||||||
not_null<Info::Controller*> controller,
|
not_null<Window::SessionNavigation*> navigation,
|
||||||
not_null<PeerData*> peer,
|
not_null<PeerData*> peer,
|
||||||
Fn<void()> reloadOnDone,
|
Fn<void()> reloadOnDone,
|
||||||
std::optional<Data::BoostPrepaidGiveaway> prepaid) {
|
std::optional<Data::BoostPrepaidGiveaway> prepaid) {
|
||||||
box->setWidth(st::boxWideWidth);
|
box->setWidth(st::boxWideWidth);
|
||||||
|
|
||||||
const auto weakWindow = base::make_weak(controller->parentController());
|
const auto weakWindow = base::make_weak(navigation->parentController());
|
||||||
|
|
||||||
using GiveawayType = Giveaway::GiveawayTypeRow::Type;
|
using GiveawayType = Giveaway::GiveawayTypeRow::Type;
|
||||||
using GiveawayGroup = Ui::RadioenumGroup<GiveawayType>;
|
using GiveawayGroup = Ui::RadioenumGroup<GiveawayType>;
|
||||||
|
@ -384,7 +384,7 @@ void CreateGiveawayBox(
|
||||||
|
|
||||||
using Controller = Giveaway::AwardMembersListController;
|
using Controller = Giveaway::AwardMembersListController;
|
||||||
auto listController = std::make_unique<Controller>(
|
auto listController = std::make_unique<Controller>(
|
||||||
controller,
|
navigation,
|
||||||
peer,
|
peer,
|
||||||
state->selectedToAward);
|
state->selectedToAward);
|
||||||
listController->setCheckError(CreateErrorCallback(
|
listController->setCheckError(CreateErrorCallback(
|
||||||
|
|
|
@ -13,9 +13,9 @@ namespace Data {
|
||||||
struct BoostPrepaidGiveaway;
|
struct BoostPrepaidGiveaway;
|
||||||
} // namespace Data
|
} // namespace Data
|
||||||
|
|
||||||
namespace Info {
|
namespace Window {
|
||||||
class Controller;
|
class SessionNavigation;
|
||||||
} // namespace Info
|
} // namespace Window
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class GenericBox;
|
class GenericBox;
|
||||||
|
@ -23,7 +23,7 @@ class GenericBox;
|
||||||
|
|
||||||
void CreateGiveawayBox(
|
void CreateGiveawayBox(
|
||||||
not_null<Ui::GenericBox*> box,
|
not_null<Ui::GenericBox*> box,
|
||||||
not_null<Info::Controller*> controller,
|
not_null<Window::SessionNavigation*> navigation,
|
||||||
not_null<PeerData*> peer,
|
not_null<PeerData*> peer,
|
||||||
Fn<void()> reloadOnDone,
|
Fn<void()> reloadOnDone,
|
||||||
std::optional<Data::BoostPrepaidGiveaway> prepaidGiveaway);
|
std::optional<Data::BoostPrepaidGiveaway> prepaidGiveaway);
|
||||||
|
|
Loading…
Add table
Reference in a new issue