mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Beta version 5.5.7: Workaround MSVC bug.
This commit is contained in:
parent
b518f7c4c4
commit
1cb92ef69a
1 changed files with 3 additions and 1 deletions
|
@ -318,6 +318,8 @@ HistoryWidget::HistoryWidget(
|
||||||
) | rpl::start_with_next(crl::guard(_list, [=] {
|
) | rpl::start_with_next(crl::guard(_list, [=] {
|
||||||
_list->onParentGeometryChanged();
|
_list->onParentGeometryChanged();
|
||||||
}), lifetime());
|
}), lifetime());
|
||||||
|
|
||||||
|
const auto weak = Ui::MakeWeak(this);
|
||||||
_scroll->addContentRequests(
|
_scroll->addContentRequests(
|
||||||
) | rpl::start_with_next([=] {
|
) | rpl::start_with_next([=] {
|
||||||
if (_history && _history->loadedAtBottom()) {
|
if (_history && _history->loadedAtBottom()) {
|
||||||
|
@ -332,7 +334,7 @@ HistoryWidget::HistoryWidget(
|
||||||
if (tryToAppend() == Result::MediaLoading) {
|
if (tryToAppend() == Result::MediaLoading) {
|
||||||
const auto sharedLifetime = std::make_shared<rpl::lifetime>();
|
const auto sharedLifetime = std::make_shared<rpl::lifetime>();
|
||||||
session().downloaderTaskFinished(
|
session().downloaderTaskFinished(
|
||||||
) | rpl::start_with_next([=, weak = Ui::MakeWeak(this)] {
|
) | rpl::start_with_next([=] {
|
||||||
if (const auto strong = weak.data()) {
|
if (const auto strong = weak.data()) {
|
||||||
if (tryToAppend() != Result::MediaLoading) {
|
if (tryToAppend() != Result::MediaLoading) {
|
||||||
sharedLifetime->destroy();
|
sharedLifetime->destroy();
|
||||||
|
|
Loading…
Add table
Reference in a new issue