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

Improve webview on macOS.

This commit is contained in:
John Preston
2022-08-04 19:33:56 +03:00
parent 5793241efc
commit 2f5038a792
6 changed files with 12 additions and 6 deletions

View File

@@ -816,7 +816,9 @@ QPointer<Ui::RpWidget> Premium::createPinnedToTop(
: st::settingsPremiumTopBarBack),
st::infoTopBarScale);
_back->setDuration(0);
_back->toggleOn(isLayer ? _backToggles.value() : rpl::single(true));
_back->toggleOn(isLayer
? _backToggles.value() | rpl::type_erased()
: rpl::single(true));
_back->entity()->addClickHandler([=] {
_showBack.fire({});
});