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
Perhaps the path could be an option in NativeSettings ?
I worry this does not address user-selectable paths (ie, a typical File->Save action) which I am trying to unify with the current persistence mechanism.
By exposing FileStorage I was able to save to a chosen path on user interaction. In my application I use the default storage behavior as a kind of 'session-resume', but would like to also have manual save and load as I expect users to generate multiple application states.
The current way to have a persistent app is to implement
epi::App
and use the featurepersistence
.In particular, one must implement the method
save
.save
uses a default location given by:Local Storage
on the webdirectories_next::ProjectDirs::data_dir
on native.But there is no way (as far as I can see) to change the default location.
Describe the solution you'd like
I would like to be able to choose where the data is stored.
Describe alternatives you've considered
I propose to exhibit the call to create a dyn
epi::Storage
, so people could change it.We could add a method to the
epi::App
traitA default implementation is given by the current behaviour.
Additional context
A very simple use case is that I would like to store the app data in a Google drive folder, so I get "persistence" across devices too.
The text was updated successfully, but these errors were encountered: