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.
This commit is contained in:
parent
d6396bc02a
commit
a1f9ee23fa
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user