Line DSH : hide widget if OVP disabled.

This commit is contained in:
Paddle
2023-11-08 13:57:41 +01:00
committed by abdullahtahiriyo
parent 20fcdfbd89
commit 403bc55bfa

View File

@@ -193,7 +193,10 @@ private:
bool isWidgetVisible() const override
{
return true;
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath(
"User parameter:BaseApp/Preferences/Mod/Sketcher/Tools");
int index = hGrp->GetInt("OnViewParameterVisibility", 1);
return index != 0;
};
QPixmap getToolIcon() const override