Fix usage of checked property

This commit is contained in:
Jaby 2025-04-02 20:06:35 +02:00
parent 2e6aa8dbe9
commit 5f93549a05
1 changed files with 4 additions and 6 deletions

View File

@ -44,10 +44,8 @@ component ProjectWidget inherits Rectangle {
HorizontalLayout { HorizontalLayout {
alignment: start; alignment: start;
CheckBox { CheckBox {
text: "Append elements from project to existing elements"; text: "Append elements from project to existing elements";
toggled() => { checked <=> root.append_project_elements;
root.append_project_elements = self.checked;
}
} }
} }
HorizontalLayout { HorizontalLayout {
@ -83,8 +81,8 @@ component ProjectWidget inherits Rectangle {
} }
} }
CheckBox { CheckBox {
text: "Use relative path for files"; text: "Use relative path for files";
checked: root.use_rel_paths; checked <=> root.use_rel_paths;
} }
HorizontalLayout { HorizontalLayout {
alignment: start; alignment: start;