mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix custom emoji in edit caption / send files box.
This commit is contained in:
@@ -64,16 +64,10 @@ TabbedPanel::TabbedPanel(
|
||||
_selector->setParent(this);
|
||||
_selector->setRoundRadius(st::roundRadiusSmall);
|
||||
_selector->setAfterShownCallback([=](SelectorTab tab) {
|
||||
if (tab == SelectorTab::Gifs || tab == SelectorTab::Stickers) {
|
||||
_controller->enableGifPauseReason(
|
||||
Window::GifPauseReason::SavedGifs);
|
||||
}
|
||||
_controller->enableGifPauseReason(_selector->level());
|
||||
});
|
||||
_selector->setBeforeHidingCallback([=](SelectorTab tab) {
|
||||
if (tab == SelectorTab::Gifs || tab == SelectorTab::Stickers) {
|
||||
_controller->disableGifPauseReason(
|
||||
Window::GifPauseReason::SavedGifs);
|
||||
}
|
||||
_controller->disableGifPauseReason(_selector->level());
|
||||
});
|
||||
_selector->showRequests(
|
||||
) | rpl::start_with_next([=] {
|
||||
|
||||
Reference in New Issue
Block a user