Centralize retained dialog cancel bindings
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "log.h"
|
||||
#include "node_dialog_layer_rename.h"
|
||||
#include "canvas.h"
|
||||
#include "legacy_ui_overlay_services.h"
|
||||
#include "node_image_texture.h"
|
||||
|
||||
Node* NodeDialogLayerRename::clone_instantiate() const
|
||||
@@ -26,9 +27,7 @@ void NodeDialogLayerRename::init_controls()
|
||||
btn_ok = find<NodeButton>("btn-ok");
|
||||
btn_cancel = find<NodeButton>("btn-cancel");
|
||||
input = find<NodeTextInput>("txt-input");
|
||||
btn_cancel->on_click = [this](Node*) {
|
||||
destroy();
|
||||
};
|
||||
pp::panopainter::bind_legacy_click_destroys_node(*btn_cancel, *this);
|
||||
}
|
||||
|
||||
void NodeDialogLayerRename::loaded()
|
||||
|
||||
Reference in New Issue
Block a user