avoid displaying the scanning annexed files message when repo is not large

Avoids users thinking this scan is a big deal, when it's not in the
majority of repos.

showSideActionAfter has some ugly caveats, since it has to display in
the background of another action. I could not see a better way to do it
and it works fine in this particular case. It also doesn't really belong
in Annex.Concurrent, but cannot go in Messages due to an import loop.

Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
Joey Hess 2021-06-04 13:16:48 -04:00
parent 95cec1bdfe
commit 0434674c85
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 36 additions and 3 deletions

View file

@ -15,6 +15,7 @@ module Utility.ThreadScheduler (
threadDelaySeconds,
waitForTermination,
oneSecond,
unboundDelay,
) where
import Control.Monad