diff options
author | crupest <crupest@outlook.com> | 2022-03-29 16:37:33 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-03-29 16:37:33 +0800 |
commit | e45106981ba5720947cdb56a3f48ad3e91a996b8 (patch) | |
tree | 77a0300f4badb0dfc888983e75d5d2c1ad1d7c8a /src/theme_builder/components/StyleRuleSetEditor.h | |
parent | 7a564d98db0b7c7be5b3bfac955cb88998a472ac (diff) | |
download | cru-e45106981ba5720947cdb56a3f48ad3e91a996b8.tar.gz cru-e45106981ba5720947cdb56a3f48ad3e91a996b8.tar.bz2 cru-e45106981ba5720947cdb56a3f48ad3e91a996b8.zip |
...
Diffstat (limited to 'src/theme_builder/components/StyleRuleSetEditor.h')
-rw-r--r-- | src/theme_builder/components/StyleRuleSetEditor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/theme_builder/components/StyleRuleSetEditor.h b/src/theme_builder/components/StyleRuleSetEditor.h index c5fe67fd..03148889 100644 --- a/src/theme_builder/components/StyleRuleSetEditor.h +++ b/src/theme_builder/components/StyleRuleSetEditor.h @@ -1,5 +1,6 @@ #pragma once #include "StyleRuleEditor.h" +#include "cru/ui/DeleteLater.h" #include "cru/ui/components/Component.h" #include "cru/ui/controls/Button.h" #include "cru/ui/controls/Control.h" @@ -35,7 +36,9 @@ class StyleRuleSetEditor : public ui::components::Component { ui::controls::ScrollView scroll_view_; ui::controls::FlexLayout container_; ui::controls::FlexLayout rules_layout_; - std::vector<std::unique_ptr<StyleRuleEditor>> style_rule_editors_; + std::vector<ui::DeleteLaterPtr<StyleRuleEditor>> style_rule_editors_; ui::controls::IconButton add_button_; + + bool suppress_next_set_ = false; }; } // namespace cru::theme_builder::components |