Just to elaborate bit more.. Issue is on reload of the wiki the 
$:/state/LeftBar is removed, but if the bar was previously opened, then the 
theme storyleft and storyright retain their modified values, which cause 
future open of the bar to result in some recursive transclusion error on 
those tiddlers.

I resolved it by modifying to use the existence of 
$:/plugins/TWaddle/LeftBar/temp as the indicator of if the bar is open or 
closed, as it persists across reload.  Here's how I changed the 
LeftBar/Toggle:

\define leftbar-content()
<div class="leftbar-content">
{{$:/plugins/TWaddle/LeftBar/Menu}}
</div>
\end

<$list filter="[title[$:/plugins/TWaddle/LeftBar/temp]!is[tiddler]]" >
<$button set="$:/state/LeftBar" setTo="show" class="tc-btn-invisible 
tc-image-button leftbar-toggle">
{{$:/core/images/menu-button}}
    <$action-setfield $tiddler="$:/plugins/TWaddle/LeftBar/temp"
$field="storyleft"
                $value={{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}/>
<$action-setfield $tiddler="$:/plugins/TWaddle/LeftBar/temp" 
$field="storyright"
                $value={{$:/themes/tiddlywiki/vanilla/metrics/storyright}}/>
        <$action-setfield 
$tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyleft" 
text="/*LeftBar*/ calc({{$:/plugins/TWaddle/LeftBar/Stylesheet!!width}} + 
{{$:/plugins/TWaddle/LeftBar/temp!!storyleft}})" />
<$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyright"
text="/*LeftBar*/ calc({{$:/plugins/TWaddle/LeftBar/temp!!storyright}} + 
{{$:/themes/tiddlywiki/vanilla/metrics/storyleft}})"/>
</$button>
</$list>

<$list filter="[title[$:/plugins/TWaddle/LeftBar/temp]is[tiddler]]" >
<$button set="$:/state/LeftBar" setTo="hide" class="tc-btn-invisible 
tc-image-button leftbar-toggle">
{{$:/core/images/chevron-left}}
<$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyleft" 
text={{$:/plugins/TWaddle/LeftBar/temp!!storyleft}} />
<$action-setfield 
$tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyright" 
text={{$:/plugins/TWaddle/LeftBar/temp!!storyright}} />
<$action-deletetiddler $tiddler="$:/plugins/TWaddle/LeftBar/temp"/>
</$button>
</$list>

<$list filter="[title[$:/plugins/TWaddle/LeftBar/temp]is[tiddler]]" >
<<leftbar-content>>
</$list>
<$list filter="[title[$:/plugins/TWaddle/LeftBar/temp]!is[tiddler]]" >
<div class="leftbar-togglezone">
<<leftbar-content>>
</div>
</$list>






>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/587d438d-1b59-4233-a79f-487ff09db3ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to