Synchronize correct translations instance
This commit is contained in:
parent
9a887d9a1f
commit
584b9e190f
@ -71,7 +71,7 @@ public class DataStore {
|
|||||||
this.translations = translations;
|
this.translations = translations;
|
||||||
|
|
||||||
// Propagate changes
|
// Propagate changes
|
||||||
synchronizer.forEach(synchronizer -> synchronizer.synchronize(translations, searchQuery));
|
synchronizer.forEach(synchronizer -> synchronizer.synchronize(this.translations, searchQuery));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// If state cannot be loaded from disk, show empty instance
|
// If state cannot be loaded from disk, show empty instance
|
||||||
@ -79,7 +79,7 @@ public class DataStore {
|
|||||||
new LocalizedNode(LocalizedNode.ROOT_KEY, new ArrayList<>()));
|
new LocalizedNode(LocalizedNode.ROOT_KEY, new ArrayList<>()));
|
||||||
|
|
||||||
// Propagate changes
|
// Propagate changes
|
||||||
synchronizer.forEach(synchronizer -> synchronizer.synchronize(translations, searchQuery));
|
synchronizer.forEach(synchronizer -> synchronizer.synchronize(this.translations, searchQuery));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user