Fix compilation
This commit is contained in:
parent
38a7856a0f
commit
a3e09c2407
@ -244,7 +244,7 @@ namespace unison
|
|||||||
public void Consume_Clicked(object sender, RoutedEventArgs e) => _mpd.Consume();
|
public void Consume_Clicked(object sender, RoutedEventArgs e) => _mpd.Consume();
|
||||||
public void ChangeVolume(int value) => _mpd.SetVolume(value);
|
public void ChangeVolume(int value) => _mpd.SetVolume(value);
|
||||||
|
|
||||||
public static void Snapcast_Clicked(object sender, RoutedEventArgs e)
|
public void Snapcast_Clicked(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
SnapcastHandler snapcast = (SnapcastHandler)Application.Current.Properties["snapcast"];
|
SnapcastHandler snapcast = (SnapcastHandler)Application.Current.Properties["snapcast"];
|
||||||
snapcast.LaunchOrExit();
|
snapcast.LaunchOrExit();
|
||||||
|
@ -85,7 +85,7 @@ namespace unison
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void NumberValidationTextBox(object sender, TextCompositionEventArgs e)
|
private void NumberValidationTextBox(object sender, TextCompositionEventArgs e)
|
||||||
{
|
{
|
||||||
Regex regex = new Regex("[^0-9]+");
|
Regex regex = new Regex("[^0-9]+");
|
||||||
e.Handled = regex.IsMatch(e.Text);
|
e.Handled = regex.IsMatch(e.Text);
|
||||||
@ -149,7 +149,7 @@ namespace unison
|
|||||||
MPDConnect_Clicked(null, null);
|
MPDConnect_Clicked(null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void MPDDatabaseUpdate_Clicked(object sender, RoutedEventArgs e)
|
private void MPDDatabaseUpdate_Clicked(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
MPDHandler mpd = (MPDHandler)Application.Current.Properties["mpd"];
|
MPDHandler mpd = (MPDHandler)Application.Current.Properties["mpd"];
|
||||||
if (mpd.IsConnected())
|
if (mpd.IsConnected())
|
||||||
@ -180,7 +180,7 @@ namespace unison
|
|||||||
TimedText(UpdateDBMessage2, 2);
|
TimedText(UpdateDBMessage2, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void CheckUpdates(object sender, RoutedEventArgs e)
|
private void CheckUpdates(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
UpdateHandler updater = (UpdateHandler)Application.Current.Properties["updater"];
|
UpdateHandler updater = (UpdateHandler)Application.Current.Properties["updater"];
|
||||||
updater.Start(true);
|
updater.Start(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user