Commit eed5cd17 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: hopefully improve the fontconfig cache display

parent 0d727300
...@@ -194,6 +194,7 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent, ...@@ -194,6 +194,7 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent,
setCancelButton( new QPushButton( "&" + qfu(data->cancel) ) ); setCancelButton( new QPushButton( "&" + qfu(data->cancel) ) );
if (data->title != NULL) if (data->title != NULL)
setWindowTitle (qfu(data->title)); setWindowTitle (qfu(data->title));
setWindowRole ("vlc-progress"); setWindowRole ("vlc-progress");
setMinimumDuration (300); setMinimumDuration (300);
setValue( 0 ); setValue( 0 );
...@@ -247,6 +248,7 @@ void DialogHandler::startProgressBar (vlc_object_t *, void *value) ...@@ -247,6 +248,7 @@ void DialogHandler::startProgressBar (vlc_object_t *, void *value)
dialog_progress_bar_t *data = (dialog_progress_bar_t *)value; dialog_progress_bar_t *data = (dialog_progress_bar_t *)value;
QWidget *dlg = new QVLCProgressDialog (this, data); QWidget *dlg = new QVLCProgressDialog (this, data);
QTimer::singleShot( 300, dlg, SLOT( show() ) );
// dlg->show (); // dlg->show ();
} }
......
...@@ -358,8 +358,8 @@ static int Create( vlc_object_t *p_this ) ...@@ -358,8 +358,8 @@ static int Create( vlc_object_t *p_this )
_("Please wait while your font cache is rebuilt.\n" _("Please wait while your font cache is rebuilt.\n"
"This should take less than a few minutes."), NULL ); "This should take less than a few minutes."), NULL );
if( p_dialog ) /* if( p_dialog )
dialog_ProgressSet( p_dialog, NULL, 0.5 ); dialog_ProgressSet( p_dialog, NULL, 0.5 ); */
FcConfigBuildFonts( fcConfig ); FcConfigBuildFonts( fcConfig );
t2 = mdate(); t2 = mdate();
...@@ -367,7 +367,7 @@ static int Create( vlc_object_t *p_this ) ...@@ -367,7 +367,7 @@ static int Create( vlc_object_t *p_this )
if( p_dialog ) if( p_dialog )
{ {
dialog_ProgressSet( p_dialog, NULL, 1.0 ); // dialog_ProgressSet( p_dialog, NULL, 1.0 );
dialog_ProgressDestroy( p_dialog ); dialog_ProgressDestroy( p_dialog );
p_dialog = NULL; p_dialog = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment