perf(ags): don't sort multiple times

This commit is contained in:
matt1432 2024-07-10 13:55:45 -04:00
parent b28f07d9db
commit 7600d2f4cf
4 changed files with 4 additions and 8 deletions
modules/ags/config/ts

View file

@ -51,9 +51,6 @@ export default () => {
list.add(widget);
widget.show_all();
(list.get_children() as Gtk.ListBoxRow[]).forEach((r) => {
r.changed();
});
};
// Decode old item:

View file

@ -181,9 +181,6 @@ export class SortedList<
this._entry.on_change = ({ text }) => {
if (text !== null || typeof text === 'string') {
this._set_sort(text, this._list, this._placeholder);
(this._list.get_children() as ListBoxRow[]).forEach((r) => {
r.changed();
});
}
};
// TODO: add on_accept where it just selects the first visible one