The layout button toggles between Editor, Viewer and Split View. There should be an option to decide what mode should be available. For example, some users might only want the Editor and Viewer modes, but never need the Split View one.
To do so, a dropdown option named "Available layouts" should be added to the Config screen, with the following settings:
And that option should be linked to the behaviour of the Layout button.
The config option should be added to models/Setting.js while the NOTE_VISIBLE_PANES_TOGGLE action should be modified to support this new option.
Hi! Do you still need help with this? If so I'd be glad to pick up this issue.
Sure, please do.
Hmm. Better still, I suggest, would be the option of multiple buttons, one per layout. The cycling/toggling feels a bit cumbersome. Ack that it's easy to stand here and chuck rocks: not my intention to be be negative.
@laurent22 This issue doesn't seem to have been worked on in quite some time, so I created a solution for it and sent PR at https://github.com/laurent22/joplin/pull/2028.