Merge pull request #8 from prashantgupta24/dev

making notifications better
This commit is contained in:
Prashant Gupta 2019-04-08 17:39:38 -07:00 committed by GitHub
commit 665b40fce3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,6 @@ import (
"github.com/go-vgo/robotgo"
"github.com/prashantgupta24/activity-tracker/pkg/tracker"
"github.com/prashantgupta24/automatic-mouse-mover/pkg/notify"
)
var instance *MouseMover
@ -56,7 +55,7 @@ func (m *MouseMover) Start() {
} else {
msg := "Mouse pointer cannot be moved. See README for details."
log.Errorf(msg)
notify.SendMessage(msg)
robotgo.ShowAlert("Error with Automatic Mouse Mover", msg)
}
case <-time.After(timeout * time.Millisecond):
//timeout, do nothing