Centralize retained dialog cancel bindings
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "node_dialog_resize.h"
|
||||
#include "app_core/document_resize.h"
|
||||
#include "canvas.h"
|
||||
#include "legacy_ui_overlay_services.h"
|
||||
#include "node_image_texture.h"
|
||||
#include <array>
|
||||
|
||||
@@ -36,9 +37,7 @@ void NodeDialogResize::init_controls()
|
||||
&& state.current_resolution_index < static_cast<int>(combo->m_items.size())) {
|
||||
combo->m_current_index = state.current_resolution_index;
|
||||
}
|
||||
btn_cancel->on_click = [this](Node*) {
|
||||
destroy();
|
||||
};
|
||||
pp::panopainter::bind_legacy_click_destroys_node(*btn_cancel, *this);
|
||||
}
|
||||
|
||||
void NodeDialogResize::loaded()
|
||||
|
||||
Reference in New Issue
Block a user