summaryrefslogtreecommitdiff
path: root/Assistant/Threads/MountWatcher.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Assistant/Threads/MountWatcher.hs')
-rw-r--r--Assistant/Threads/MountWatcher.hs11
1 files changed, 1 insertions, 10 deletions
diff --git a/Assistant/Threads/MountWatcher.hs b/Assistant/Threads/MountWatcher.hs
index 7d0ef5ae4..20862dac1 100644
--- a/Assistant/Threads/MountWatcher.hs
+++ b/Assistant/Threads/MountWatcher.hs
@@ -165,7 +165,7 @@ handleMount st dstatus scanremotes mntent = do
branch <- runThreadState st $ Command.Sync.currentBranch
let nonspecial = filter (Git.repoIsLocal . Remote.repo) rs
unless (null nonspecial) $
- alertWhile dstatus (syncalert nonspecial) $ do
+ alertWhile dstatus (syncMountAlert dir nonspecial) $ do
debug thisThread ["syncing with", show nonspecial]
runThreadState st $ manualPull branch nonspecial
now <- getCurrentTime
@@ -173,15 +173,6 @@ handleMount st dstatus scanremotes mntent = do
addScanRemotes scanremotes rs
where
dir = mnt_dir mntent
- syncalert rs = Alert
- { alertClass = Activity
- , alertHeader = Just $ "Syncing with " ++ unwords (map Remote.name rs)
- , alertMessage = StringAlert $ unwords
- ["I noticed you plugged in", dir,
- " -- let's get it in sync!"]
- , alertBlockDisplay = True
- }
-
{- Finds remotes located underneath the mount point.
-