Always load translations after singleton initialization to ensure that data is loaded

This commit is contained in:
Marcel Haßlinger 2021-05-25 16:54:32 +02:00
parent f3795eacee
commit 5e922512fb

View File

@ -40,6 +40,8 @@ public class DataStore {
private DataStore(@NotNull Project project) {
this.project = project;
this.synchronizer = new ArrayList<>();
reloadFromDisk();
}
/**
@ -160,7 +162,7 @@ public class DataStore {
/**
* @return Current translation state
*/
public Translations getTranslations() {
public @NotNull Translations getTranslations() {
return translations;
}
}