2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Detach ComposeControls from SessionController.

This commit is contained in:
John Preston
2023-05-02 13:33:19 +04:00
parent 665467b02d
commit 65afa2c402
178 changed files with 2080 additions and 1869 deletions

View File

@@ -807,8 +807,9 @@ void SetupStickersEmoji(
st::settingsButton,
{ &st::settingsIconStickers, kIconLightOrange }
)->addClickHandler([=] {
controller->show(
Box<StickersBox>(controller, StickersBox::Section::Installed));
controller->show(Box<StickersBox>(
controller->uiShow(),
StickersBox::Section::Installed));
});
AddButton(
@@ -991,8 +992,8 @@ void SetupMessages(
Core::App().saveSettingsDelayed();
});
buttonRight->setClickedCallback([=, show = Window::Show(controller)] {
show.showBox(Box(ReactionsSettingsBox, controller));
buttonRight->setClickedCallback([=, show = controller->uiShow()] {
show->showBox(Box(ReactionsSettingsBox, controller));
});
AddSkip(inner, st::settingsSendTypeSkip);