mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve plot redraw scheduler
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "RiaFontCache.h"
|
||||
#include "RiaImportEclipseCaseTools.h"
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaPlotWindowRedrawScheduler.h"
|
||||
#include "RiaPreferences.h"
|
||||
#include "RiaProjectModifier.h"
|
||||
#include "RiaRegressionTestRunner.h"
|
||||
@@ -1449,6 +1450,7 @@ void RiaGuiApplication::onProjectBeingClosed()
|
||||
RicHoloLensSessionManager::refreshToolbarState();
|
||||
|
||||
RiaViewRedrawScheduler::instance()->clearViewsScheduledForUpdate();
|
||||
RiaPlotWindowRedrawScheduler::instance()->clearAllScheduledUpdates();
|
||||
|
||||
RiaGuiApplication::clearAllSelections();
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ void RiaPlotWindowRedrawScheduler::slotUpdateAndReplotScheduledItemsWhenReady()
|
||||
{
|
||||
if ( caf::ProgressState::isActive() )
|
||||
{
|
||||
startTimer( 10 );
|
||||
startTimer( 100 );
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,9 @@ private slots:
|
||||
void slotUpdateAndReplotScheduledItemsWhenReady();
|
||||
|
||||
private:
|
||||
RiaPlotWindowRedrawScheduler() = default;
|
||||
~RiaPlotWindowRedrawScheduler() = default;
|
||||
|
||||
void startTimer( int msecs );
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user