Skip to content

Commit

Permalink
Automatically rename FMIWrappers to FMU base file name
Browse files Browse the repository at this point in the history
  • Loading branch information
robbr48 committed Jan 23, 2024
1 parent 449500b commit f114f68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HopsanGUI/GUIObjects/GUIComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ bool Component::setParameterValue(QString name, QString value, bool force)
//Adjust icon scale
this->getAppearanceData()->setIconScale(qMax(qMax(inputs.size(),outputs.size())/3.0,1.0), UserGraphics);

mpParentSystemObject->renameModelObject(this->getName(), QFileInfo(getParameterValue("path")).baseName());

//Refresh appearance
this->refreshAppearance();

Expand Down

0 comments on commit f114f68

Please sign in to comment.