mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Ensure store does initial resync
This commit is contained in:
@@ -146,9 +146,13 @@ func (s *Store) setupListener() {
|
||||
// Resetting the curent data will resync
|
||||
s.resync()
|
||||
})
|
||||
|
||||
// Do initial resync
|
||||
s.resync()
|
||||
}
|
||||
|
||||
func (s *Store) resync() {
|
||||
|
||||
// Stringify data
|
||||
newdata, err := json.Marshal(s.data.Interface())
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user