aboutsummaryrefslogtreecommitdiff
path: root/gomuks.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-05-16 21:58:04 +0300
committerTulir Asokan <tulir@maunium.net>2018-05-16 21:59:44 +0300
commita1f9ee23fa07bdeb548953cdadb7e2cfb0fa05de (patch)
treed68c21101e1ec2cfc5c9c251ca62e7b39d5f9517 /gomuks.go
parentd6396bc02a81837403587338c73d8e489fe6e0cb (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.
Diffstat (limited to 'gomuks.go')
-rw-r--r--gomuks.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/gomuks.go b/gomuks.go
index 6582ee3..ae007e0 100644
--- a/gomuks.go
+++ b/gomuks.go
@@ -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)
}