mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Merge branch 'development'
This commit is contained in:
commit
058513fd2a
133 files changed
+2683
-1415
No files matched your search
@@ -7,6 +7,7 @@ public class LayoutSelection : CorePropertyChanged
|
||||
{
|
||||
private string? _type;
|
||||
private string? _parameter;
|
||||
private string? _errorState;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets what kind of layout reference this is.
|
||||
@@ -25,4 +26,13 @@ public class LayoutSelection : CorePropertyChanged
|
||||
get => _parameter;
|
||||
set => SetAndNotify(ref _parameter, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the error state of the layout reference.
|
||||
/// </summary>
|
||||
public string? ErrorState
|
||||
{
|
||||
get => _errorState;
|
||||
set => SetAndNotify(ref _errorState, value);
|
||||
}
|
||||
}
|
||||
@@ -184,13 +184,14 @@ internal class DeviceService : IDeviceService
|
||||
device.ApplyLayout(null, false, false);
|
||||
else
|
||||
provider?.ApplyLayout(device, layout);
|
||||
|
||||
UpdateLeds();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
device.LayoutSelection.ErrorState = e.Message;
|
||||
_logger.Error(e, "Failed to apply device layout");
|
||||
}
|
||||
|
||||
UpdateLeds();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in new issue
Block a user