mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Fix crash in closing export panel.
This commit is contained in:
@@ -285,7 +285,9 @@ void SeparatePanel::ensureLayerCreated() {
|
||||
_layer->resize(size);
|
||||
}, _layer->lifetime());
|
||||
_layer->hideFinishEvents(
|
||||
) | rpl::start_with_next([=]{
|
||||
) | rpl::filter([=] {
|
||||
return _layer != nullptr; // Last hide finish is sent from destructor.
|
||||
}) | rpl::start_with_next([=] {
|
||||
if (Ui::InFocusChain(_layer)) {
|
||||
setFocus();
|
||||
}
|
||||
|
Reference in New Issue
Block a user