aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/StyleRuleSetEditor.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-03-29 16:37:33 +0800
committercrupest <crupest@outlook.com>2022-03-29 16:37:33 +0800
commite45106981ba5720947cdb56a3f48ad3e91a996b8 (patch)
tree77a0300f4badb0dfc888983e75d5d2c1ad1d7c8a /src/theme_builder/components/StyleRuleSetEditor.h
parent7a564d98db0b7c7be5b3bfac955cb88998a472ac (diff)
downloadcru-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.h5
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