feat(Applications): add setter to frequency (#124)

This commit is contained in:
matt1432
2023-10-12 13:15:36 +02:00
committed by GitHub
parent 70b8966b2c
commit a3cfe8ca2c
+9
View File
@@ -25,7 +25,16 @@ class Application extends Service {
_frequency: number;
get app() { return this._app; }
get frequency() { return this._frequency; }
set frequency(value) {
if (value < 0)
value = 0;
this._frequency = value;
this.emit('launched');
}
get name() { return this._app.get_name(); }
get desktop() { return this._app.get_id(); }
get description() { return this._app.get_description(); }