Working mpd handling, even if I'm not a big fan of it
This commit is contained in:
20
App.xaml.cs
20
App.xaml.cs
@ -1,6 +1,16 @@
|
||||
using System.Windows;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using Hardcodet.Wpf.TaskbarNotification;
|
||||
|
||||
// todo:
|
||||
//
|
||||
// * finish correct refresh of mpd
|
||||
// * show mpd version
|
||||
// * change volume offset
|
||||
// * fix window resize
|
||||
// * show covers
|
||||
|
||||
namespace unison
|
||||
{
|
||||
public partial class App : Application
|
||||
@ -14,19 +24,21 @@ namespace unison
|
||||
{
|
||||
base.OnStartup(e);
|
||||
|
||||
Hotkeys = new HotkeyHandler();
|
||||
Current.Properties["hotkeys"] = Hotkeys;
|
||||
|
||||
Snapcast = new SnapcastHandler();
|
||||
Current.Properties["snapcast"] = Snapcast;
|
||||
|
||||
MPD = new MPDHandler();
|
||||
Current.Properties["mpd"] = MPD;
|
||||
|
||||
Hotkeys = new HotkeyHandler();
|
||||
Current.Properties["hotkeys"] = Hotkeys;
|
||||
|
||||
Current.MainWindow = new MainWindow();
|
||||
|
||||
Systray = (TaskbarIcon)FindResource("SystrayTaskbar");
|
||||
Current.Properties["systray"] = Systray;
|
||||
|
||||
MPD.Start();
|
||||
}
|
||||
|
||||
protected override void OnExit(ExitEventArgs e)
|
||||
|
Reference in New Issue
Block a user