power: Correctly lookup or insert new items into combobox
The code to lookup or insert items into the combobox had a few issues. It would assume that the items are sorted, causing existing items to not be found and be inserted instead. It also would simply forget to insert an item if it was larger than all existing items. This code is now changed to iterate over all items, finding the best insertion point in the process (next item has a larger value, or the values are not increasing anymore). The item will only be inserted if it has not been found. Fixes #261
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
Build | |||||||||
passed |
#142661
|
build |
00:00:56
|
|
|||||
Test | |||||||||
passed |
#142663
|
asan |
00:00:47
|
|
|||||
passed |
#142662
|
test |
00:00:33
|
|
|||||
Manual | |||||||||
manual |
#142668
allowed to fail
manual
|
armv8 |
|
||||||
manual |
#142664
allowed to fail
manual
|
flatpak |
|
||||||
manual |
#142667
allowed to fail
manual
|
msan |
|
||||||
manual |
#142669
allowed to fail
manual
|
ppc64le |
|
||||||
manual |
#142665
allowed to fail
manual
|
tsan |
|
||||||
manual |
#142666
allowed to fail
manual
|
ubsan |
|
||||||
Review | |||||||||
manual |
#142670
allowed to fail
manual
|
review |
|
||||||
manual |
#142671
allowed to fail
manual
|
stop_review |
|
||||||