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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user