Centralize canvas progress teardown
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "asset.h"
|
||||
#include "node_text.h"
|
||||
#include "node_metadata.h"
|
||||
#include "legacy_ui_overlay_services.h"
|
||||
|
||||
Node* NodeRemotePage::clone_instantiate() const
|
||||
{
|
||||
@@ -55,7 +56,7 @@ std::future<bool> NodeRemotePage::load_url(const std::string& url,
|
||||
m_content->add_child_xml(std::string((char*)remote->m_data, (size_t)remote->m_len), "about");
|
||||
if (auto meta = m_content->find<NodeMetadata>("metadata"))
|
||||
m_page_id = std::stol(meta->m_props["page-id"]);
|
||||
align->destroy();
|
||||
pp::panopainter::destroy_legacy_node(*align);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user