Skip to content

Commit

Permalink
appIndicator: Do not try to initialize an indicator not in stage yet
Browse files Browse the repository at this point in the history
Even if an indicator is ready we should not try to update it if it's not in
stage because we depend on the theme node
  • Loading branch information
3v1n0 committed Mar 7, 2023
1 parent 4f2074f commit 55f7e62
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion appIndicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,17 @@ class AppIndicatorsIconActor extends St.Icon {

if (indicator.isReady) {
this._updateCustomIcons();
this._invalidateIcon();

if (this.get_stage()) {
this._invalidateIcon();
} else {
const id = this.connect('parent-set', () => {
if (this.get_stage()) {
this.disconnect(id);
this._invalidateIcon();
}
});
}
}

this.connect('destroy', () => {
Expand Down

0 comments on commit 55f7e62

Please sign in to comment.