avoid displaying alert when syncing only to removable drives and all not attached
This commit is contained in:
parent
f8707b6d3b
commit
a87e046049
2 changed files with 5 additions and 3 deletions
|
@ -167,8 +167,10 @@ syncAction rs a
|
||||||
failed <- a rs
|
failed <- a rs
|
||||||
let failed' = filter (not . Git.repoIsLocalUnknown . Remote.repo) failed
|
let failed' = filter (not . Git.repoIsLocalUnknown . Remote.repo) failed
|
||||||
let succeeded = filter (`notElem` failed) nonxmppremotes
|
let succeeded = filter (`notElem` failed) nonxmppremotes
|
||||||
updateAlertMap $ mergeAlert i $
|
if null succeeded && null failed'
|
||||||
syncResultAlert succeeded failed'
|
then removeAlert i
|
||||||
|
else updateAlertMap $ mergeAlert i $
|
||||||
|
syncResultAlert succeeded failed'
|
||||||
return failed
|
return failed
|
||||||
where
|
where
|
||||||
nonxmppremotes = filter (not . isXMPPRemote) rs
|
nonxmppremotes = filter (not . isXMPPRemote) rs
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Name: git-annex
|
Name: git-annex
|
||||||
Version: 4.20130323
|
Version: 4.20130324
|
||||||
Cabal-Version: >= 1.8
|
Cabal-Version: >= 1.8
|
||||||
License: GPL
|
License: GPL
|
||||||
Maintainer: Joey Hess <joey@kitenet.net>
|
Maintainer: Joey Hess <joey@kitenet.net>
|
||||||
|
|
Loading…
Reference in a new issue