Loading Lister Layout with Command = Not Restoring Column Format

Hi,

I'm having a bit of a problem with Column/Folder formats not being restored when loading lister layouts.

For example, when I have a vertical dual pane lister open, with both panes showing 'My Computer' (which is default when using keyboard shortcut WIN+E), and then load a lister layour with "Prefs LAYOUT=xxxx LAYOUTTHISLISTER=paths", the lister layout will be loaded, but the column format will be incorrect. If I then reload the lister layout, the correct columns are restored. Please see GIF below for demonstration.

My question is, is there anyway to force the Folder Column Format to update or 'reset to custom' when loading a lister layout?

If I use "SET FORMAT=!custom", the column format headers will be restored, but the fields in the file list will be blank.

Example using:

Prefs LAYOUT=LISP LAYOUTTHISLISTER=paths


Example using:

Prefs LAYOUT=LISP LAYOUTTHISLISTER=paths set FOCUS=Left SET FORMAT=!custom set FOCUS=Right SET FORMAT=!custom set FOCUS=Left


Is it possible to restore a Folder Column Format along with the Lister Layout?

Thanks a lot for any help.

I should add... that once I hit the Lister Load button (in this case "LISP Directory") a second time, the column format is restored correctly. That's why I hit the button twice in the demo GIFs.

If you open the layout into a new window, by selecting it from Settings > Lister Layouts, does it ise the desired folder formats then?

Hey Leo,

Thanks for the reply.

Yes, loading the lister layout from the menu (Settings > Lister Layouts) does restore the correct folder formats (in the new window).

Thanks for the confirmation. I've not had a chance to look at this in detail but will update the thread once I have.

Thanks Leo.

Hi Leo,

Any update on this? Are you able to reproduce this issue?

Thanks for any help.

Is anyone able to confirm this behaviour?

Bump

The issue with "Prefs LAYOUTTHISLISTER" not applying column changes has been fixed for 12.0.7.

It only went wrong if the starting point was the Computer folder (or another with restrictions on which columns it can display). So an interim workaround may be to add a Go command to change away from the Computer folder before applying the layout:

Go C:\ DUALPATH C:\ Prefs LAYOUTTHISLISTER=paths LAYOUT=test

(If you use the actual paths that the layout will load, it'll look a bit nicer, but any normal folder path should get the same end result once the command has finished.)

In 12.0.7 you won't need the workaround and the original command on its own will work, even from Computer.

Thanks Leo.