tdf#95573 - stop (crazy) busy loop from blocking rendering.
Attempt to blind fix extensions problem on OS/X. Some quite amazing code there. To avoid each busy idle from invalidating, avoid progress bar invalidation for the same %age being set. Change-Id: If96f8615c0ea712681e008972b3abe1c070a3227
This commit is contained in:
@@ -1198,7 +1198,7 @@ UpdateRequiredDialog::UpdateRequiredDialog(vcl::Window *pParent, TheExtensionMan
|
||||
m_pUpdateBtn->Enable( false );
|
||||
m_pCloseBtn->GrabFocus();
|
||||
|
||||
m_aIdle.SetPriority( SchedulerPriority::MEDIUM );
|
||||
m_aIdle.SetPriority( SchedulerPriority::LOWEST );
|
||||
m_aIdle.SetIdleHdl( LINK( this, UpdateRequiredDialog, TimeOutHdl ) );
|
||||
}
|
||||
|
||||
|
@@ -177,7 +177,7 @@ void ProgressBar::SetValue( sal_uInt16 nNewPercent )
|
||||
Update();
|
||||
}
|
||||
}
|
||||
else
|
||||
else if ( mnPercent != nNewPercent )
|
||||
{
|
||||
mnPreviousPercent = mnPercent;
|
||||
mnPercent = nNewPercent;
|
||||
|
Reference in New Issue
Block a user