Skip to content

Commit

Permalink
bitfocus: help text
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jan 8, 2025
1 parent 1144ab0 commit 1750393
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,15 @@ void BitfocusProtocolSettingsWidget::setSettings(const Device::DeviceSettings& s
{
if(m_hasInitLabel)
{
m_rootLayout->removeRow(1);
m_hasInitLabel = false;
if(settings.deviceSpecificSettings.canConvert<BitfocusSpecificSettings>())
{
auto stgs = settings.deviceSpecificSettings.value<BitfocusSpecificSettings>();
if(!stgs.path.isEmpty())
{
m_rootLayout->removeRow(1);
m_hasInitLabel = false;
}
}
}

m_widgets.clear();
Expand Down

0 comments on commit 1750393

Please sign in to comment.