mirror of
https://github.com/cyanfish/naps2.git
synced 2024-11-20 16:06:29 +03:00
Fix error
This commit is contained in:
parent
8d8d110fec
commit
289dbbc803
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user