making notifications better
This commit is contained in:
parent
d76767dd36
commit
b018f974b6
|
@ -8,7 +8,6 @@ import (
|
||||||
|
|
||||||
"github.com/go-vgo/robotgo"
|
"github.com/go-vgo/robotgo"
|
||||||
"github.com/prashantgupta24/activity-tracker/pkg/tracker"
|
"github.com/prashantgupta24/activity-tracker/pkg/tracker"
|
||||||
"github.com/prashantgupta24/automatic-mouse-mover/pkg/notify"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var instance *MouseMover
|
var instance *MouseMover
|
||||||
|
@ -56,7 +55,7 @@ func (m *MouseMover) Start() {
|
||||||
} else {
|
} else {
|
||||||
msg := "Mouse pointer cannot be moved. See README for details."
|
msg := "Mouse pointer cannot be moved. See README for details."
|
||||||
log.Errorf(msg)
|
log.Errorf(msg)
|
||||||
notify.SendMessage(msg)
|
robotgo.ShowAlert("Error with Automatic Mouse Mover", msg)
|
||||||
}
|
}
|
||||||
case <-time.After(timeout * time.Millisecond):
|
case <-time.After(timeout * time.Millisecond):
|
||||||
//timeout, do nothing
|
//timeout, do nothing
|
||||||
|
|
Loading…
Reference in New Issue