aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/properties/SelectPropertyEditor.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-17 18:32:52 +0800
committercrupest <crupest@outlook.com>2022-02-17 18:32:52 +0800
commitada641977cd57a50fc862243ba256c58efc065b8 (patch)
tree0f2124b88496f42e2cce2e3aaa64211131c18b37 /src/theme_builder/components/properties/SelectPropertyEditor.cpp
parent9b3b13f78fffefb18f64aad88891d36009a8052e (diff)
downloadcru-ada641977cd57a50fc862243ba256c58efc065b8.tar.gz
cru-ada641977cd57a50fc862243ba256c58efc065b8.tar.bz2
cru-ada641977cd57a50fc862243ba256c58efc065b8.zip
...
Diffstat (limited to 'src/theme_builder/components/properties/SelectPropertyEditor.cpp')
-rw-r--r--src/theme_builder/components/properties/SelectPropertyEditor.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/theme_builder/components/properties/SelectPropertyEditor.cpp b/src/theme_builder/components/properties/SelectPropertyEditor.cpp
index 243f6035..835b2d12 100644
--- a/src/theme_builder/components/properties/SelectPropertyEditor.cpp
+++ b/src/theme_builder/components/properties/SelectPropertyEditor.cpp
@@ -7,15 +7,9 @@ SelectPropertyEditor::SelectPropertyEditor() {
container_.AddChild(&label_);
container_.AddChild(select_.GetRootControl());
- select_.ItemSelectedEvent()->AddHandler([this](Index index) {
- if (!suppress_next_change_event_) {
- change_event_.Raise(nullptr);
- } else {
- suppress_next_change_event_ = false;
- }
- });
+ select_.ItemSelectedEvent()->AddHandler(
+ [this](Index index) { RaiseChangeEvent(); });
}
SelectPropertyEditor::~SelectPropertyEditor() {}
-
} // namespace cru::theme_builder::components::properties