When pressing the button "Dual Display" with command
Set DUAL=Toggle,Remember
@toggle:invert
@if:Set DUAL=on
Set VIEWPANE=on
@icon:dualdisplay, Set DUAL=off
@if:else
Set VIEWPANE=off
@icon:viewerpane, Set DUAL=on
I get the following layout: the toolbar, which previously was located between the listers has now moved to the right side.
You need to create two toolbar sets, one with the vertical toolbar in the center and another with that toolbar on the left edge, as shown in this code with the lines beginning with Toolbar:
//Preferences-File Displays-Options-Dual display must unselect "Set new panel to when switching to dual file display"
@toggle:if Set Dual=off
Set PAIREDFOLDERS=off
@if:Set DUAL=on
@set lst:sourceWasRight={=IsChecked("Set SOURCE=right")=}
Set DUAL=toggle,remember
Toolbar "Operations Left" LOADSET=replace
@if:else
Set DUAL=toggle,remember
Toolbar "Default" LOADSET=replace
=return Val("$lst:sourceWasRight") ? "Go SWAP" : ""
=return Val("$lst:sourceWasRight") ? "Set SOURCE=right" : ""