mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 07:16:53 -06:00
(#686) Enable "Hide grid" for geomech views
This commit is contained in:
parent
5d81209b72
commit
9ec7326735
@ -1897,19 +1897,21 @@ void RiuMainWindow::refreshDrawStyleActions()
|
||||
m_drawStyleFaultLinesSolidAction->setEnabled(enable);
|
||||
m_disableLightingAction->setEnabled(enable);
|
||||
|
||||
RimGeoMechView* geoMechView = dynamic_cast<RimGeoMechView*>(view);
|
||||
bool lightingDisabledInView = view ? view->isLightingDisabled() : false;
|
||||
|
||||
m_disableLightingAction->blockSignals(true);
|
||||
m_disableLightingAction->setChecked(lightingDisabledInView);
|
||||
m_disableLightingAction->blockSignals(false);
|
||||
|
||||
if (enable)
|
||||
{
|
||||
m_drawStyleToggleFaultsAction->setEnabled(true);
|
||||
}
|
||||
|
||||
RimEclipseView* eclView = dynamic_cast<RimEclipseView*>(view);
|
||||
enable = enable && eclView;
|
||||
|
||||
m_drawStyleToggleFaultsAction->setEnabled(enable);
|
||||
m_toggleFaultsLabelAction->setEnabled(enable);
|
||||
|
||||
m_addWellCellsToRangeFilterAction->setEnabled(enable);
|
||||
|
||||
if (enable)
|
||||
|
Loading…
Reference in New Issue
Block a user