gex: trial of using qucik submenu toggles

This commit is contained in:
Luke D. Jones
2023-07-02 11:37:36 +12:00
parent 6d3918ccf0
commit 4f3a6ce1c6
9 changed files with 284 additions and 39 deletions

View File

@@ -14,6 +14,9 @@ export class AnimeDbus extends DbusBase {
},
};
// TODO: interface or something to enforce requirement of "sync()" method
public notifyAnimeStateSubscribers: any[] = [];
constructor() {
super("org-asuslinux-anime-4", "/org/asuslinux/Anime");
}
@@ -85,6 +88,9 @@ export class AnimeDbus extends DbusBase {
if (proxy) {
// idiot xml parsing mneans the get is not nested while this is
this._parseData(data[0]);
this.notifyAnimeStateSubscribers.forEach(sub => {
sub.sync();
});
}
}
);