mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Profile editor - Fix crash when there are no devices
This commit is contained in:
1 parent
a2a063c136
commit
bfa1d60dec
1 file changed
+1
-1
@@ -81,7 +81,7 @@ public class VisualEditorView : ReactiveUserControl<VisualEditorViewModel>
|
||||
|
||||
private void AutoFit(bool skipTransitions)
|
||||
{
|
||||
if (ViewModel == null)
|
||||
if (ViewModel == null || !ViewModel.Devices.Any())
|
||||
return;
|
||||
|
||||
double left = ViewModel.Devices.Select(d => d.Rectangle.Left).Min();
|
||||
|
||||
Reference in new issue
Block a user