Skip to content

Commit

Permalink
Respect the scan devices option for new devices
Browse files Browse the repository at this point in the history
The prompt to install MobiFlight on a compatible device will now be
shown only if the "Scan for compatible boards" setting is enabled.
  • Loading branch information
rageshkrishna committed Sep 26, 2024
1 parent 53c3af2 commit bd2a03c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UI/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,10 @@ private void Module_Connected(object sender, EventArgs e)
// This board is not flashed yet
if (module.ToMobiFlightModuleInfo()?.FirmwareInstallPossible() ?? false)
{
// We can install firmware on this device but the user
// has asked us not to auto scan devices so we bail
if (!Properties.Settings.Default.FwAutoUpdateCheck) return;

PerformFirmwareInstallProcess(module.ToMobiFlightModuleInfo());
return;
}
Expand Down

0 comments on commit bd2a03c

Please sign in to comment.