trying to fix window issues
This commit is contained in:
@@ -82,8 +82,8 @@ namespace mpvnet
|
||||
|
||||
InitTheme();
|
||||
|
||||
Core.Shutdown += Shutdown;
|
||||
Core.Initialized += Initialized;
|
||||
Core.Shutdown += Core_Shutdown;
|
||||
Core.Initialized += Core_Initialized;
|
||||
}
|
||||
|
||||
public static void InitTheme()
|
||||
@@ -153,7 +153,7 @@ namespace mpvnet
|
||||
InvokeOnMainThread(() => Msg.ShowError(title, msg));
|
||||
}
|
||||
|
||||
static void Initialized()
|
||||
static void Core_Initialized()
|
||||
{
|
||||
if (RememberVolume)
|
||||
{
|
||||
@@ -162,7 +162,7 @@ namespace mpvnet
|
||||
}
|
||||
}
|
||||
|
||||
static void Shutdown()
|
||||
static void Core_Shutdown()
|
||||
{
|
||||
Settings.Volume = Core.get_property_int("volume");
|
||||
Settings.Mute = Core.get_property_string("mute");
|
||||
|
||||
@@ -68,7 +68,6 @@ namespace mpvnet
|
||||
|
||||
public event Action Initialized;
|
||||
public event Action InitializedAsync;
|
||||
|
||||
public event Action VideoSizeChanged;
|
||||
public event Action VideoSizeChangedAsync;
|
||||
public event Action<float> ScaleWindow;
|
||||
@@ -349,8 +348,6 @@ namespace mpvnet
|
||||
if (WindowHandle == IntPtr.Zero)
|
||||
WindowHandle = Native.FindWindowEx(MainForm.Hwnd, IntPtr.Zero, "mpv", null);
|
||||
|
||||
//System.Diagnostics.Debug.WriteLine(evt.event_id.ToString());
|
||||
|
||||
try
|
||||
{
|
||||
switch (evt.event_id)
|
||||
|
||||
Reference in New Issue
Block a user