Skip to content

Commit

Permalink
live-preview: Fix filter in selection popup being init to empty (#7177)
Browse files Browse the repository at this point in the history
... till the filter button is pressed for the first time.
  • Loading branch information
hunger authored Dec 19, 2024
1 parent cd4bab3 commit 93edeeb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tools/lsp/ui/components/selection-popup.slint
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ component FilterList {
}
out property <bool> has-filter: !self.lcb || !self.icb || !self.ocb;

private property <bool> lcb;
private property <bool> icb;
private property <bool> ocb;
private property <bool> lcb: true;
private property <bool> icb: true;
private property <bool> ocb: true;

width: 0px;
height: 0px;
Expand Down Expand Up @@ -64,19 +64,16 @@ component FilterList {
lcb := CheckBox {
text: @tr("Layouts");
checked <=> root.lcb;
init => { self.checked = true; }
}

icb := CheckBox {
text: @tr("Interactive");
checked <=> root.icb;
init => { self.checked = true; }
}

ocb := CheckBox {
text: @tr("Other");
checked <=> root.ocb;
init => { self.checked = true; }
}
}
}
Expand Down

0 comments on commit 93edeeb

Please sign in to comment.