Fix regression in Systray text display
This commit is contained in:
@ -3,6 +3,7 @@ using System.Windows.Input;
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace unison
|
namespace unison
|
||||||
{
|
{
|
||||||
@ -32,7 +33,7 @@ namespace unison
|
|||||||
CanExecuteFunc = () => true
|
CanExecuteFunc = () => true
|
||||||
};
|
};
|
||||||
|
|
||||||
public static string SnapcastText
|
public string SnapcastText
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
@ -49,7 +50,7 @@ namespace unison
|
|||||||
{
|
{
|
||||||
CommandAction = () =>
|
CommandAction = () =>
|
||||||
{
|
{
|
||||||
Application.Current.Dispatcher.BeginInvoke(new Action(() => OnPropertyChanged("SnapcastText")));
|
Application.Current.Dispatcher.BeginInvoke(new Action(() => OnPropertyChanged(SnapcastText)));
|
||||||
|
|
||||||
SnapcastHandler snapcast = (SnapcastHandler)Application.Current.Properties["snapcast"];
|
SnapcastHandler snapcast = (SnapcastHandler)Application.Current.Properties["snapcast"];
|
||||||
snapcast.LaunchOrExit();
|
snapcast.LaunchOrExit();
|
||||||
|
Reference in New Issue
Block a user