You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue here is related to the fact that the last folder paths are still saved in the global config file (along the currently not via GUI changeable file log setting for the GUI). The reason is related to Tauris file safety. To allow all saved paths after a restart/reload, the Tauri side needs to allow them, and there is no real solution to allow this from the frontend side (outside the file modals) without basically allowing the code to permit every path/file, at which point we could just disable this safety setting.
At the moment, the folders are saved on a proper shutdown via a hook. I wanted to avoid constant writes to the file. Now, the fact that this one is not triggered by the restart is worth investigating.
Analysis:
Behaviour is reproducible. The assumption here is that the restart does not trigger the exit event that save the config file.
No other event seems fitting (DOCS), so the solution is likely to control the saving process on the GUI side, either completely or as additional feature. As part of this, the window events should be tested which of them trigger on close and which on restart.
The issue will now be handled via the lifecycle changes in feature-improved-game-folder-lifecycle.
This will remove the GUI relaunch needed for certain changes. The only remaining case would be Updater relaunches, and these can not be handled anyway.
#241 (comment)
The text was updated successfully, but these errors were encountered: