Little profile refactoring and favorite server adding fix.

Done some refactoring on profiles handling. Too small, but deserve
these two lines in commit.

Fixed favorite server addition from scratch.
This commit is contained in:
2017-05-13 01:08:56 +05:00
parent a6d53a3fd9
commit 070aa50762
4 changed files with 13 additions and 4 deletions

View File

@@ -91,6 +91,7 @@ func (t *Timer) Initialize() {
fmt.Println("Initializing timer...")
t.initializeStorage()
Eventer.AddEventHandler("taskDone", t.SetTaskNotInProgress)
ticker := time.NewTicker(time.Second * 1)
go func() {
@@ -98,8 +99,6 @@ func (t *Timer) Initialize() {
go t.executeTasks()
}
}()
Eventer.AddEventHandler("taskDone", t.SetTaskNotInProgress)
}
func (t *Timer) initializeStorage() {