perf(ags): don't sort multiple times
All checks were successful
Discord / discord commits (push) Has been skipped

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

View file

@ -22,7 +22,6 @@
"block-scoped-var": ["error"], "block-scoped-var": ["error"],
"class-methods-use-this": ["error"],
"curly": ["warn"], "curly": ["warn"],
"default-case-last": ["warn"], "default-case-last": ["warn"],
"default-param-last": ["error"], "default-param-last": ["error"],

View file

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

View file

@ -181,9 +181,6 @@ export class SortedList<
this._entry.on_change = ({ text }) => { this._entry.on_change = ({ text }) => {
if (text !== null || typeof text === 'string') { if (text !== null || typeof text === 'string') {
this._set_sort(text, this._list, this._placeholder); 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 // TODO: add on_accept where it just selects the first visible one

View file

@ -95,7 +95,10 @@ in {
// (import ./icons.nix {inherit pkgs agsConfigDir;}); // (import ./icons.nix {inherit pkgs agsConfigDir;});
packages = packages =
[self.packages.${pkgs.system}.coloryou] [
# TODO: replace with matugen
self.packages.${pkgs.system}.coloryou
]
++ (with pkgs; [ ++ (with pkgs; [
# ags # ags
dart-sass dart-sass