File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
maximus-buttons@hanspr/files/maximus-buttons@hanspr Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments