Extract layer rename dialog and brush preset registry shells
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
|
||||
#include "legacy_brush_preset_services.h"
|
||||
#include "legacy_brush_preset_list_services.h"
|
||||
|
||||
#include "abr.h"
|
||||
#include "app.h"
|
||||
@@ -84,6 +85,7 @@ bool LegacyBrushPresetServices::restore()
|
||||
owner_.add_brush(b);
|
||||
}
|
||||
}
|
||||
owner_.m_notification->SetVisibility(owner_.m_container->m_children.size() == 0);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -350,7 +352,7 @@ bool LegacyBrushPresetServices::import_ppbr(const std::string& path)
|
||||
App::I->ui_task([owner, brushes_to_add = std::move(brushes_to_add), pb]() mutable {
|
||||
for (const auto& b : brushes_to_add)
|
||||
{
|
||||
for (auto p : NodePanelBrushPreset::s_panels)
|
||||
for (auto p : legacy_brush_preset_panels())
|
||||
p->add_brush(b);
|
||||
}
|
||||
|
||||
@@ -439,7 +441,7 @@ bool LegacyBrushPresetServices::import_abr(const std::string& path)
|
||||
if (b->valid())
|
||||
{
|
||||
LOG("add preset %s", b->m_name.c_str());
|
||||
for (auto p : NodePanelBrushPreset::s_panels)
|
||||
for (auto p : legacy_brush_preset_panels())
|
||||
p->add_brush(b);
|
||||
}
|
||||
pb->increment();
|
||||
|
||||
Reference in New Issue
Block a user