From 2aa1fa652916ed977411ca2129f47a93836e8563 Mon Sep 17 00:00:00 2001 From: adroslice Date: Sun, 17 Nov 2019 04:47:17 +0100 Subject: [PATCH] Fixed Error databinding - I don't understand why this works now, but it does and I'm glad. --- BFR/Operations/Operation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }