Skip to content

Commit

Permalink
added sync from systray
Browse files Browse the repository at this point in the history
  • Loading branch information
beebeeoii committed Jan 12, 2022
1 parent c833ddf commit ce08a88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ui/systray.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ func onReady() {
case <-syncButton.ClickedCh:
preferences := getPreferences()
if preferences.Directory == "" {
notifications.NotificationChannel <- notifications.Notification{Title: "Lominus", Content: "Unable to sync: please set the directory to store your Luminus files"}
notifications.NotificationChannel <- notifications.Notification{Title: "Unable to sync", Content: "Please set the directory to store your Luminus files"}
return
}
if preferences.Frequency == -1 {
notifications.NotificationChannel <- notifications.Notification{Title: "Lominus", Content: "Unable to sync: please choose a sync frequency to sync now."}
notifications.NotificationChannel <- notifications.Notification{Title: "Unable to sync", Content: "Please choose a sync frequency to sync now."}
return
}
cron.Rerun(getPreferences().Frequency)
Expand Down

0 comments on commit ce08a88

Please sign in to comment.