mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-29 12:06:01 +02:00
* fix(store): Load state from disk and extend defaults, fixes #296 * fmt
This commit is contained in:
@@ -185,7 +185,8 @@ impl<R: Runtime> Store<R> {
|
||||
|
||||
let bytes = read(store_path)?;
|
||||
|
||||
self.cache = (self.deserialize)(&bytes).map_err(Error::Deserialize)?;
|
||||
self.cache
|
||||
.extend((self.deserialize)(&bytes).map_err(Error::Deserialize)?);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user