Skip to content

Commit

Permalink
fix error with already destroyed label
Browse files Browse the repository at this point in the history
  • Loading branch information
jonian committed Oct 23, 2023
1 parent d491a16 commit 4a2c411
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/taskbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ class TaskBarItem extends St.Bin {

this.label.hide()
Main.layoutManager.addChrome(this.label)
this.connect('destroy', () => this.label.destroy())

this.label.connect('destroy', () => this.label = null)
this.connect('destroy', () => this.label?.destroy())

this.side = St.Side.BOTTOM
}
Expand Down

0 comments on commit 4a2c411

Please sign in to comment.