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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user