mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Only enable animation control when there are more than one time step string available
p4#: 21229
This commit is contained in:
parent
687bc8aecf
commit
a20640f25f
@ -580,6 +580,13 @@ void RiuMainWindow::refreshAnimationActions()
|
||||
timeStepStrings.push_back(tr("Static Property"));
|
||||
}
|
||||
}
|
||||
|
||||
// Animation control is only relevant for more than one time step
|
||||
if (timeStepStrings.size() < 2)
|
||||
{
|
||||
enableAnimControls = false;
|
||||
}
|
||||
|
||||
m_animationToolBar->setFrameRate(app->activeReservoirView()->maximumFrameRate());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user