Skip to content

Commit 4e2d68d

Browse files
authored
maximus-buttons@hanspr: Fix icon bug (#8194)
* Fixes #8190
1 parent 3317a78 commit 4e2d68d

File tree

1 file changed

+5
-5
lines changed
  • maximus-buttons@hanspr/files/maximus-buttons@hanspr

1 file changed

+5
-5
lines changed

maximus-buttons@hanspr/files/maximus-buttons@hanspr/applet.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@ class MyApplet extends Applet.TextIconApplet {
264264
this.setButtons("hide")
265265
return
266266
}
267-
let buttons = this.buttons_style.split(":")
268-
if (this.checkButton(buttons, "icon")) {
269-
this.updateWindowIcon()
270-
}
271267
if (this.onlyMaximized == true) {
272268
this.onlyMaximize(w)
273269
} else {
@@ -314,7 +310,11 @@ class MyApplet extends Applet.TextIconApplet {
314310
wtype = 0
315311
}
316312
for (let i = 0; i < buttons.length; ++i) {
317-
if (buttons[i] == undefined || buttons[i] == "icon" || this.button[buttons[i]] == undefined || (this.button[buttons[i]].opacity == skip && wtype == 0)) {
313+
if (buttons[i]) {
314+
this.updateWindowIcon()
315+
continue
316+
}
317+
if (buttons[i] == undefined || this.button[buttons[i]] == undefined || (this.button[buttons[i]].opacity == skip && wtype == 0)) {
318318
continue
319319
}
320320
let show = true

0 commit comments

Comments
 (0)