Skip to content

Commit

Permalink
Avoid updating Count for Xapp backend
Browse files Browse the repository at this point in the history
It's not supported by the backend anyway
  • Loading branch information
bibelin committed Oct 6, 2024
1 parent fdf6f4a commit b4ba616
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions taskbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ func (t *Taskbar) Count() int {

// Sets counter value (only supported by libunity Launcher API)
func (t *Taskbar) SetCount(c int) error {
if t.backend == xappBackend {
return nil
}
if t.count != c {
t.count = c
return t.update()
Expand Down

0 comments on commit b4ba616

Please sign in to comment.