Skip to content

Commit

Permalink
Merge pull request #555 from deXol/develop
Browse files Browse the repository at this point in the history
[BLE] Avoid recreating DeviceSettings, when device type does not change
  • Loading branch information
raoulh authored Dec 13, 2019
2 parents 0d1ba5e + 6e38166 commit 8483b3a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Settings/SettingsGuiHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ void SettingsGuiHelper::createSettingUIMapping()
{
delete m_settings;
}
else if (m_settings)
{
// If type is not different do not recreate m_settings
return;
}
m_deviceType = type;
if (m_deviceType == Common::MP_BLE)
{
Expand Down

0 comments on commit 8483b3a

Please sign in to comment.