Delay showing the font indexing dialog for 250ms

Helps avoid ugly flickering when no indexing is required, but fontconfig
is taking a long time to load the cache.
This commit is contained in:
Thomas Goyne 2015-07-28 17:32:32 -07:00
parent 9ae508730d
commit 017bbe1e59

View file

@ -109,6 +109,9 @@ class LibassSubtitlesProvider final : public SubtitlesProvider {
return shared->renderer;
auto block = [&] {
if (shared->ready)
return;
agi::util::sleep_for(250);
if (shared->ready)
return;
br->Run([=](agi::ProgressSink *ps) {