Automatic folder size calculation can't keep state

@toggle:if !Set CALCFOLDERSIZES=off
@icon:getsizes,!Set CALCFOLDERSIZES=off

@if:Set CALCFOLDERSIZES=off
Set CALCFOLDERSIZES=local,toggle,skipjunctions
Go REFRESH 
@if:else
Set CALCFOLDERSIZES=off

Can't keep the switch state. Even if the automatic folder size calculation option is turned on in the global settings, the option returns to the off state after switching the path.

dopus ver:21.22.1
dopus ver:21.22.0 This function is used normally.

That button seems to work as I'd expect here, testing with 12.22.1.

Make sure you don't have any folder formats or scripts which are overriding things when the folder changes.