Explorar o código

Fix: update "goto build file" icon regardless of lock state

Ronny Otto %!s(int64=6) %!d(string=hai) anos
pai
achega
9e133d3123
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      maxide.bmx

+ 2 - 2
maxide.bmx

@@ -6211,14 +6211,14 @@ Type TCodePlay
 		EndIf
 ' locked build file buttons
 		If lockedpanel
+			EnableGadgetItem( toolbar, TB_LOCKGOTO)
 			If GadgetItemIcon( toolbar, TB_LOCKOPEN ) <> TB_LOCKCLOSED
 				ModifyGadgetItem( toolbar, TB_LOCKOPEN, "", GADGETITEM_LOCALIZED, TB_LOCKCLOSED, "{{tb_lockedbuildfile}}: " + lockedpanel.path )
-				EnableGadgetItem( toolbar, TB_LOCKGOTO)
 			EndIf
 		Else
+			DisableGadgetItem( toolbar, TB_LOCKGOTO)
 			If GadgetItemIcon( toolbar, TB_LOCKOPEN ) <> TB_LOCKOPEN
 				ModifyGadgetItem( toolbar, TB_LOCKOPEN, "", GADGETITEM_LOCALIZED, TB_LOCKOPEN, "{{tb_lockbuildfile}}" )
-				DisableGadgetItem( toolbar, TB_LOCKGOTO)
 			EndIf
 		EndIf