Update desklet if settings change
This commit is contained in:
parent
b78361b3e9
commit
acc52e3c37
@ -63,6 +63,14 @@ MyDesklet.prototype = {
|
||||
this.timeout = Mainloop.timeout_add_seconds(5, Lang.bind(this, this.update));
|
||||
},
|
||||
|
||||
on_setting_changed: function() {
|
||||
// update decoration settings
|
||||
// this.refreshDecoration();
|
||||
// settings changed; instant refresh
|
||||
Mainloop.source_remove(this.timeout);
|
||||
this.update();
|
||||
},
|
||||
|
||||
on_desklet_removed: function() {
|
||||
Mainloop.source_remove(this.timeout);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user