From f7df25372dbe1c7b49a3497412f8706dd9ad02c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Marchal?= Date: Sat, 7 Jun 2025 01:51:39 +0200 Subject: [PATCH] Fix regression in Systray text display --- Views/SystrayViewModel.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Views/SystrayViewModel.cs b/Views/SystrayViewModel.cs index 4b51151..6d02ed1 100644 --- a/Views/SystrayViewModel.cs +++ b/Views/SystrayViewModel.cs @@ -3,6 +3,7 @@ using System.Windows.Input; using System.Reflection; using System.ComponentModel; using System; +using System.Diagnostics; namespace unison { @@ -32,7 +33,7 @@ namespace unison CanExecuteFunc = () => true }; - public static string SnapcastText + public string SnapcastText { get { @@ -49,7 +50,7 @@ namespace unison { CommandAction = () => { - Application.Current.Dispatcher.BeginInvoke(new Action(() => OnPropertyChanged("SnapcastText"))); + Application.Current.Dispatcher.BeginInvoke(new Action(() => OnPropertyChanged(SnapcastText))); SnapcastHandler snapcast = (SnapcastHandler)Application.Current.Properties["snapcast"]; snapcast.LaunchOrExit();