syncNewRemote is not only used for new remotes; rename to syncRemote
This commit is contained in:
parent
4ba729461c
commit
1f1cddbaa7
7 changed files with 11 additions and 15 deletions
|
@ -44,7 +44,7 @@ changeSyncable Nothing enable = do
|
|||
| otherwise = PauseWatcher
|
||||
changeSyncable (Just r) True = do
|
||||
changeSyncFlag r True
|
||||
syncRemote r
|
||||
liftAssistant $ syncRemote r
|
||||
changeSyncable (Just r) False = do
|
||||
changeSyncFlag r False
|
||||
liftAssistant $ updateSyncRemotes
|
||||
|
@ -64,10 +64,6 @@ changeSyncFlag r enabled = liftAnnex $ do
|
|||
where
|
||||
key = Config.remoteConfig (Remote.repo r) "sync"
|
||||
|
||||
{- Start syncing remote, using a background thread. -}
|
||||
syncRemote :: Remote -> Handler ()
|
||||
syncRemote = liftAssistant . syncNewRemote
|
||||
|
||||
pauseTransfer :: Transfer -> Handler ()
|
||||
pauseTransfer = cancelTransfer True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue