summaryrefslogtreecommitdiff
path: root/Assistant/Alert.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-04-24 13:04:46 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-04-24 13:04:46 -0400
commit68363880a0a1abe4edab005031c3c050c6ff589c (patch)
tree4ef3a7a7b008c6c1590117099c98927ee19aeea3 /Assistant/Alert.hs
parent1b38f6aced8bb739c33fc410dd6b171aebd1fcd5 (diff)
show one alert when bulk adding files
Turns out that a lot of the time spent in a bulk add was just updating the add alert to rotate through each file that was added. Showing one alert makes for a significant speedup. Also, when the webapp is open, this makes it take quite a lot less cpu during bulk adds. Also, it lets the user know when a bulk add happened, which is sorta nice..
Diffstat (limited to 'Assistant/Alert.hs')
-rw-r--r--Assistant/Alert.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Assistant/Alert.hs b/Assistant/Alert.hs
index f412e6232..da22d6031 100644
--- a/Assistant/Alert.hs
+++ b/Assistant/Alert.hs
@@ -233,7 +233,7 @@ fileAlert msg file = (activityAlert Nothing [f])
render fs = tenseWords $ msg : fs
combiner new old = take 10 $ new ++ old
-addFileAlert :: FilePath -> Alert
+addFileAlert :: String -> Alert
addFileAlert = fileAlert (Tensed "Adding" "Added")
{- This is only used as a success alert after a transfer, not during it. -}