pub(crate) fn prepare_at_startup(
store: &Store,
roots: Option<&ScanRoots>,
) -> Option<String>Expand description
Before the store’s first window is made (wcore::ensure_initial_data):
make sure there is a workspace. With none, copy the previous version’s
(copy_from_previous_version), else make Default Workspace. Returns the
workspace this start opens when it decided one, for adopt_current.
When the copied workspace has windows and the store has no client yet (a
new version’s first start), only the client is made: with no window, the
first window’s cold start restores them (window_create) instead of
seeding the default layout, so a build that is new here opens where the
last one left off, and offers no other build’s layout (nothing was seeded).