Closed qcgm1978 closed 10 months ago
The last board_type is already saved (in ~/.config/LizGoban.json on linux) when you close the window. It will be used in the next session unless "board_type" is explicitly set in config.json. If you'd like to see how this is implemented, search for the word 'store' in window.js.
I understand that the data will be saved if I close the application, because the program triggers this operation when app.on('quit', () => { store_session(true); kill_all_leelaz() })
. However, in the past, when I restarted the application in debug mode in vscode, the quit event was not triggered (it is said that this is because the application window remains open when restarting, so it is not considered to be a complete application exit, and the quit event will not be triggered).
When the user clicks the chessboard display mode in the view menu, the application will remember the user’s selection and use that mode as the initial display mode the next time it starts. But it seems conflict to
board_type
in config.json, so I don't know whether it is necessary. It's up toboard_type
should be decided by config or user action: