unify two similar alerts

This commit is contained in:
Joey Hess 2013-03-18 12:17:33 -04:00
parent ed1db85d88
commit 069473872f
2 changed files with 1 additions and 5 deletions

View file

@ -239,10 +239,6 @@ commitAlert = activityAlert Nothing
showRemotes :: [Remote] -> TenseChunk
showRemotes = UnTensed . T.unwords . map (T.pack . Remote.name)
pushAlert :: [Remote] -> Alert
pushAlert rs = activityAlert Nothing
[Tensed "Syncing" "Synced", "with", showRemotes rs]
pushRetryAlert :: [Remote] -> Alert
pushRetryAlert rs = activityAlert
(Just $ tenseWords [Tensed "Retrying" "Retried", "sync"])

View file

@ -104,7 +104,7 @@ pushToRemotes notifypushes remotes = do
let go = pushToRemotes' now notifypushes remotes
if null nonxmppremotes
then go
else alertWhile (pushAlert nonxmppremotes) go
else alertWhile (syncAlert nonxmppremotes) go
pushToRemotes' :: UTCTime -> Bool -> [Remote] -> Assistant Bool
pushToRemotes' now notifypushes remotes = do
(g, branch, u) <- liftAnnex $ do