diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-05-16 21:58:04 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-05-16 21:59:44 +0300 |
commit | a1f9ee23fa07bdeb548953cdadb7e2cfb0fa05de (patch) | |
tree | d68c21101e1ec2cfc5c9c251ca62e7b39d5f9517 | |
parent | d6396bc02a81837403587338c73d8e489fe6e0cb (diff) |
Load config before initializing UI
Otherwise the user ID/homeserver values are ignored even though they're
supposed to be prefilled in the UI.
Thanks to @jevolk for noticing the mistake.
-rw-r--r-- | gomuks.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -49,11 +49,12 @@ func NewGomuks(uiProvider ifc.UIProvider) *Gomuks { gmx.config = config.NewConfig(configDir, cacheDir) gmx.ui = uiProvider(gmx) gmx.matrix = matrix.NewContainer(gmx) + + gmx.config.Load() gmx.ui.Init() debug.OnRecover = gmx.ui.Finish - gmx.config.Load() if len(gmx.config.UserID) > 0 { _ = gmx.config.LoadSession(gmx.config.UserID) } |