diff options
author | Joey Hess <joey@kitenet.net> | 2012-11-13 17:50:54 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-11-13 17:50:54 -0400 |
commit | 66cfb61912d2f7fc04b9716b82aad9b02096a6ad (patch) | |
tree | b901cadef39781a9f0e87caa6a80d7bdcc293a40 /Assistant/DaemonStatus.hs | |
parent | b48755af70f229dce53138100105f352c8f6580c (diff) |
automatic repolist updating
Diffstat (limited to 'Assistant/DaemonStatus.hs')
-rw-r--r-- | Assistant/DaemonStatus.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Assistant/DaemonStatus.hs b/Assistant/DaemonStatus.hs index 8a4a7a16d..cb9133b2a 100644 --- a/Assistant/DaemonStatus.hs +++ b/Assistant/DaemonStatus.hs @@ -44,6 +44,7 @@ modifyDaemonStatus a = do sendNotification $ changeNotifier s return b + {- Returns a function that updates the lists of syncable remotes. -} calcSyncRemotes :: Annex (DaemonStatus -> DaemonStatus) calcSyncRemotes = do @@ -60,7 +61,9 @@ calcSyncRemotes = do {- Updates the sycRemotes list from the list of all remotes in Annex state. -} updateSyncRemotes :: Assistant () -updateSyncRemotes = modifyDaemonStatus_ =<< liftAnnex calcSyncRemotes +updateSyncRemotes = do + modifyDaemonStatus_ =<< liftAnnex calcSyncRemotes + liftIO . sendNotification =<< syncRemotesNotifier <$> getDaemonStatus {- Load any previous daemon status file, and store it in a MVar for this - process to use as its DaemonStatus. Also gets current transfer status. -} |