UI - Fixed potential issue with fullscreen apps

Removed the MainWindowHandle constant as it was causing issues in combination with the tray icon
This commit is contained in:
SpoinkyNL committed 2020-08-18 23:47:45 +02:00
1 parent 31dd4472a8
commit 8b8fe3a3ec
4 files changed
+2 -32

No files matched your search

-2
View File
@@ -70,7 +70,5 @@ namespace Artemis.Core
typeof(double),
typeof(decimal)
};
public static IntPtr MainWindowHandle { get; internal set; }
}
}
-5
View File
@@ -125,11 +125,6 @@ namespace Artemis.Core.Services
});
}
public void SetMainWindowHandle(IntPtr handle)
{
Constants.MainWindowHandle = handle;
}
protected virtual void OnFrameRendering(FrameRenderingEventArgs e)
{
FrameRendering?.Invoke(this, e);
@@ -46,11 +46,5 @@ namespace Artemis.Core.Services.Interfaces
/// Occurs whenever a frame is finished rendering and processed by RGB.NET
/// </summary>
event EventHandler<FrameRenderedEventArgs> FrameRendered;
/// <summary>
/// To be called by the UI to setup the main window handle
/// </summary>
/// <param name="handle"></param>
void SetMainWindowHandle(IntPtr handle);
}
}