don't show sync failure for drive that's not plugged in
This commit is contained in:
parent
c1e2448039
commit
4ce25e8986
1 changed files with 2 additions and 1 deletions
|
@ -165,9 +165,10 @@ syncAction rs a
|
|||
| otherwise = do
|
||||
i <- addAlert $ syncAlert nonxmppremotes
|
||||
failed <- a rs
|
||||
let failed' = filter (Git.repoIsLocalUnknown . Remote.repo) failed
|
||||
let succeeded = filter (`notElem` failed) nonxmppremotes
|
||||
updateAlertMap $ mergeAlert i $
|
||||
syncResultAlert succeeded failed
|
||||
syncResultAlert succeeded failed'
|
||||
return failed
|
||||
where
|
||||
nonxmppremotes = filter (not . isXMPPRemote) rs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue