mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Use shared_ptr<Memento> for sections.
This commit is contained in:
@@ -106,7 +106,7 @@ void LayerWidget::parentResized() {
|
||||
Ui::FocusPersister persister(this);
|
||||
restoreFloatPlayerDelegate();
|
||||
|
||||
auto memento = std::make_unique<MoveMemento>(std::move(_content));
|
||||
auto memento = std::make_shared<MoveMemento>(std::move(_content));
|
||||
|
||||
// We want to call hideSpecialLayer synchronously to avoid glitches,
|
||||
// but we can't destroy LayerStackWidget from its' resizeEvent,
|
||||
|
Reference in New Issue
Block a user