Centralize service adapter dialog closing

This commit is contained in:
2026-06-12 16:39:29 +02:00
parent 84373f26e7
commit e89d882022
4 changed files with 13 additions and 5 deletions

View File

@@ -6,6 +6,7 @@
#include "legacy_brush_package_import_services.h"
#include "legacy_canvas_view_services.h"
#include "legacy_history_services.h"
#include "legacy_ui_overlay_services.h"
#include "log.h"
#include "node_panel_brush.h"
#include "node_panel_layer.h"
@@ -61,7 +62,7 @@ public:
path);
if (!status.ok())
LOG("ABR import failed: %s", status.message);
target->destroy();
pp::panopainter::close_legacy_dialog_node(*target);
};
}
@@ -76,7 +77,7 @@ public:
path);
if (!status.ok())
LOG("PPBR import failed: %s", status.message);
target->destroy();
pp::panopainter::close_legacy_dialog_node(*target);
};
}
@@ -94,7 +95,7 @@ public:
true);
mb->on_submit = [app, route](Node* target) {
open_legacy_project(*app, route);
target->destroy();
pp::panopainter::close_legacy_dialog_node(*target);
};
}