Fix crash in themes editor.

Fixes #27366.
This commit is contained in:
John Preston 2024-01-16 21:09:45 +04:00
parent c452694348
commit d3fdfe4b29

View file

@ -331,9 +331,8 @@ void EditorBlock::activateRow(const Row &row) {
const auto state = editor->lifetime().make_state<State>();
const auto save = crl::guard(this, [=] {
saveEditing(editor->color());
state->cancelLifetime.destroy();
box->closeBox();
saveEditing(editor->color());
});
box->boxClosing(
) | rpl::start_with_next(crl::guard(this, [=] {