Skip to content

Commit 8d1c808

Browse files
committed
Fix: Alternative toggleable section disabler not changing section specific toggle state
1 parent a1e9f6c commit 8d1c808

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

HeckR_Replace.ahk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,11 @@ alternativeDisableBase(alternativeDisableHotstringBase) {
272272

273273
; Disable replace
274274
for sectionIndex, sectionName in alternativeSectionDisablers[alternativeDisableHotstringBase]
275-
if (toggleAbleSections[sectionName]["state"] == "On")
275+
if (toggleAbleSections[sectionName]["state"] == "On") {
276+
toggleAbleSections[sectionName]["state"] := "Off"
276277
for customHotstring, replaceValue in toggleAbleSections[sectionName]["hotstrings"]
277278
Hotstring(customHotstring, , "Off")
279+
}
278280
}
279281

280282
;------------------------------------------------

0 commit comments

Comments
 (0)