Fix error

This commit is contained in:
Ben Olden-Cooligan 2024-08-29 20:03:52 -07:00
parent 8d8d110fec
commit 289dbbc803

View File

@ -35,7 +35,7 @@ public class Sidebar
public LayoutElement CreateView(IFormBase parentWindow)
{
var profile = _profileManager.Profiles.First();
var profile = _profileManager.Profiles.FirstOrDefault() ?? new ScanProfile();
_deviceSelectorWidget = new DeviceSelectorWidget(_scanPerformer, _deviceCapsCache, _iconProvider, parentWindow)
{