Centralize retained message dialog close callbacks

This commit is contained in:
2026-06-12 15:32:28 +02:00
parent d60f4d30e2
commit 14ccf67acd
5 changed files with 17 additions and 2 deletions

View File

@@ -82,4 +82,11 @@ void bind_legacy_click_destroys_node(ButtonT& button, Node& target) noexcept
};
}
inline std::function<void(Node*)> legacy_destroy_node_callback(Node& target)
{
return [&target](Node*) {
target.destroy();
};
}
} // namespace pp::panopainter