add alert when committing
This commit is contained in:
parent
e21a32627f
commit
74fc9fcbe6
2 changed files with 6 additions and 1 deletions
|
@ -189,6 +189,9 @@ activityAlert header message = baseActivityAlert
|
||||||
startupScanAlert :: Alert
|
startupScanAlert :: Alert
|
||||||
startupScanAlert = activityAlert Nothing "Performing startup scan"
|
startupScanAlert = activityAlert Nothing "Performing startup scan"
|
||||||
|
|
||||||
|
commitAlert :: Alert
|
||||||
|
commitAlert = activityAlert Nothing "Committing changes to git"
|
||||||
|
|
||||||
pushAlert :: [Remote] -> Alert
|
pushAlert :: [Remote] -> Alert
|
||||||
pushAlert rs = activityAlert Nothing $
|
pushAlert rs = activityAlert Nothing $
|
||||||
"Syncing with " ++ unwords (map Remote.name rs)
|
"Syncing with " ++ unwords (map Remote.name rs)
|
||||||
|
|
|
@ -54,7 +54,9 @@ commitThread st changechan commitchan transferqueue dstatus = runEvery (Seconds
|
||||||
, show (length readychanges)
|
, show (length readychanges)
|
||||||
, "changes"
|
, "changes"
|
||||||
]
|
]
|
||||||
void $ tryIO $ runThreadState st commitStaged
|
void $ alertWhile dstatus commitAlert $
|
||||||
|
tryIO (runThreadState st commitStaged)
|
||||||
|
>> return True
|
||||||
recordCommit commitchan (Commit time)
|
recordCommit commitchan (Commit time)
|
||||||
else refill readychanges
|
else refill readychanges
|
||||||
else refill changes
|
else refill changes
|
||||||
|
|
Loading…
Add table
Reference in a new issue