Improvement Suggestion: remember which tabs are expanded and collapsed in the Web GUI

Hello,

I have a suggestion to improve the Web GUI of Syncthing:

Right now opening the Web GUI (http://127.0.0.1:8384) expands ‘This Device’ and collapses ‘Folders’ and ‘Remote Devices’, but I have another preference.

My suggestion is that Syncthing will remember by default which of these tabs the user had expanded and collapsed the last time and just keep the state of these from last time whenever opening the Web GUI.

It’s possible to use localStorage for this, or maybe IndexDB, whichever the Web GUI devs prefer.

This should be as simple to script as using .addEventListener(‘click’,()=>{localStorage.setItem()}) forEach tab and window.addEventListener(‘load’,()=>{localStorage.getItem()})

Thanks.