diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-08-07 21:10:11 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-09-06 15:02:29 +0200 |
commit | bc3e0121b47cc601575b0a49f6ba4959130cf96e (patch) | |
tree | 473949739a148f8bdcce05fd1e6f1a17e7b078ab /vcl | |
parent | 2f07a533ed7b52fb0420e6f0a98f42019dcf185f (diff) |
Don't poll the extension install progress bar
Just start the Idle, if actually something changed.
Quite probably we shouldn't rely on an Idle at all, but this
fixes the busy loop while installing an extension waiting in
a confirmation dialog.
Change-Id: I3abbe2eb6651ce9320ef6e4d9c5251a23ab87216
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/salnativewidgets.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx index 56ac7f2131bf..39cb514ddcbf 100644 --- a/vcl/osx/salnativewidgets.cxx +++ b/vcl/osx/salnativewidgets.cxx @@ -50,18 +50,18 @@ class AquaBlinker : public Timer tools::Rectangle maInvalidateRect; AquaBlinker( AquaSalFrame* pFrame, const tools::Rectangle& rRect ) - : mpFrame( pFrame ), maInvalidateRect( rRect ) + : Timer( "AquaBlinker" ) + , mpFrame( pFrame ) + , maInvalidateRect( rRect ) { mpFrame->maBlinkers.push_back( this ); } - public: - +public: static void Blink( AquaSalFrame*, const tools::Rectangle&, int nTimeout = 80 ); virtual void Invoke() override { - Stop(); if( AquaSalFrame::isAlive( mpFrame ) && mpFrame->mbShown ) { mpFrame->maBlinkers.remove( this ); |