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:
parent
9ae508730d
commit
017bbe1e59
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue