mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Beta version 2.9.5: Fix hide workaround for media viewer.
This commit is contained in:
parent
4d98230694
commit
0d449c037b
1 changed files with 4 additions and 3 deletions
|
@ -4518,9 +4518,10 @@ void OverlayWidget::applyHideWindowWorkaround() {
|
|||
_hideWorkaround->show();
|
||||
_hideWorkaround->paintRequest(
|
||||
) | rpl::start_with_next([=] {
|
||||
QPainter(_hideWorkaround.get()).fillRect(_hideWorkaround->rect(), QColor(0, 1, 0, 1));
|
||||
crl::on_main(_hideWorkaround.get(), [=] {
|
||||
_hideWorkaround.reset();
|
||||
const auto workaround = _hideWorkaround.release();
|
||||
QPainter(workaround).fillRect(workaround->rect(), QColor(0, 1, 0, 1));
|
||||
crl::on_main(workaround, [=] {
|
||||
delete workaround;
|
||||
});
|
||||
}, _hideWorkaround->lifetime());
|
||||
_hideWorkaround->update();
|
||||
|
|
Loading…
Add table
Reference in a new issue