From e72f0b2898c3ba1bb4f92bf3a67aaf87666e4d47 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 24 Apr 2013 11:27:30 -0400 Subject: [PATCH] only show latest warning, rather than combining warning alerts In the case of the inotify limit warning, particularly, if it happens once it will be happening repeatedly, and so combining alerts resulted in a much too large alert message that took up a lot of memory and was too large for the webapp to display. --- Assistant/Alert.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assistant/Alert.hs b/Assistant/Alert.hs index 99e57e4b29..f412e62321 100644 --- a/Assistant/Alert.hs +++ b/Assistant/Alert.hs @@ -66,7 +66,7 @@ warningAlert name msg = Alert , alertClosable = True , alertPriority = High , alertIcon = Just ErrorIcon - , alertCombiner = Just $ dataCombiner (++) + , alertCombiner = Just $ dataCombiner $ \_old new -> new , alertName = Just $ WarningAlert name , alertButton = Nothing }