aboutsummaryrefslogtreecommitdiff
path: root/gomuks.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-06-15 17:04:08 +0300
committerTulir Asokan <tulir@maunium.net>2019-06-15 17:04:08 +0300
commit160b035c4d5b88516cb4d1f4e26ec2e2e0262bcc (patch)
tree1b74381497aafe38c57aa40163735fa3fde2f1b2 /gomuks.go
parenta55ea42d7f5900bd5fc8fad047040c7865824f33 (diff)
Unbreak more things
Diffstat (limited to 'gomuks.go')
-rw-r--r--gomuks.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/gomuks.go b/gomuks.go
index 5b6ed92..1a8cec1 100644
--- a/gomuks.go
+++ b/gomuks.go
@@ -58,8 +58,6 @@ func NewGomuks(uiProvider ifc.UIProvider, configDir, cacheDir string) *Gomuks {
// Save saves the active session and message history.
func (gmx *Gomuks) Save() {
gmx.config.SaveAll()
- //debug.Print("Saving history...")
- //gmx.ui.MainView().SaveAllHistory()
}
// StartAutosave calls Save() every minute until it receives a stop signal
@@ -70,7 +68,9 @@ func (gmx *Gomuks) StartAutosave() {
for {
select {
case <-ticker.C:
- gmx.Save()
+ if gmx.config.AuthCache.InitialSyncDone {
+ gmx.Save()
+ }
case val := <-gmx.stop:
if val {
return