diff options
Diffstat (limited to 'src/org/traccar/web/client/Traccar.java')
-rw-r--r-- | src/org/traccar/web/client/Traccar.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/org/traccar/web/client/Traccar.java b/src/org/traccar/web/client/Traccar.java index 8fa67ecd..d775bb4a 100644 --- a/src/org/traccar/web/client/Traccar.java +++ b/src/org/traccar/web/client/Traccar.java @@ -16,6 +16,8 @@ package org.traccar.web.client; import org.traccar.web.client.controller.LoginController; +import org.traccar.web.client.model.BaseAsyncCallback; +import org.traccar.web.shared.model.ApplicationSettings; import com.google.gwt.core.client.EntryPoint; @@ -23,7 +25,13 @@ public class Traccar implements EntryPoint, LoginController.LoginHandler { @Override public void onModuleLoad() { - new LoginController().login(this); + Application.getDataService().updateApplicationSettings(null, new BaseAsyncCallback<ApplicationSettings>() { + @Override + public void onSuccess(ApplicationSettings result) { + ApplicationContext.getInstance().setApplicationSettings(result); + new LoginController().login(Traccar.this); + } + }); } @Override |