Commit 73f5fd7
committed
fix(MenuBar): display as much entries as
So far, we got all entries with priority smaller or equals to
`iconsLimit`. Since entries can be conditional (emoji picker,
assistant), this led to less entries in `visiblEntries` than wanted.
Since we still want to keep the order of entries from `entries.js` we
cannot just sort them by priority and need this slightly more complex
filter logic.
Signed-off-by: Jonas <jonas@freesources.org>iconsLimit allows1 parent 92d0806 commit 73f5fd7
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
144 | 151 | | |
145 | | - | |
146 | | - | |
147 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
148 | 155 | | |
149 | | - | |
150 | | - | |
151 | 156 | | |
152 | 157 | | |
153 | | - | |
| 158 | + | |
154 | 159 | | |
155 | | - | |
| 160 | + | |
156 | 161 | | |
157 | 162 | | |
158 | 163 | | |
| |||
0 commit comments