made BinStore a static class

This commit is contained in:
2023-07-27 20:45:37 +02:00
parent 74d0232160
commit 89f209130e
6 changed files with 9 additions and 18 deletions

View File

@@ -105,7 +105,7 @@ class HomeContext {
}
private function spawnPs(binName: String) {
var bin = BinStore.instance.getBinByAlias(binName);
var bin = BinStore.getBinByAlias(binName);
if (bin == null) {
Log.error('Could not find bin: ${binName}');
@@ -159,7 +159,7 @@ class HomeContext {
for (i in 0...listedApps.length) {
children.push(new TextElement(
'Add ${BinStore.instance.getNameByAlias(listedApps[i])}',
'Add ${BinStore.getNameByAlias(listedApps[i])}',
{uiEvents: {onClick: this.spawnPs.bind(listedApps[i])}}
));
}