diff --git a/BFR/Operations/Operation.cs b/BFR/Operations/Operation.cs index b536ed1..8b9426a 100644 --- a/BFR/Operations/Operation.cs +++ b/BFR/Operations/Operation.cs @@ -11,7 +11,7 @@ namespace BFR.Operations public abstract class Operation : AvaloniaObject { // Needs to be avalonia property to update UI with any potential error. - public AvaloniaProperty errorProperty = AvaloniaProperty.Register(nameof(Error), defaultValue: ""); + private readonly AvaloniaProperty errorProperty = AvaloniaProperty.Register(nameof(Error), defaultValue: ""); public string Error { get => GetValue(errorProperty); set => SetValue(errorProperty, value); } public bool IsEnabled { get; set; } = true; public abstract string Name { get; }