mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-25 08:01:49 +01:00
Change main window init to allow HidGuardian message to appear in Log tab
This commit is contained in:
parent
60983de2c6
commit
a6edab6e52
@ -160,13 +160,15 @@ namespace DS4WinWPF
|
||||
|
||||
SetUICulture(DS4Windows.Global.UseLang);
|
||||
DS4Windows.Global.LoadLinkedProfiles();
|
||||
rootHub.LaunchHidGuardHelper();
|
||||
DS4Forms.MainWindow window = new DS4Forms.MainWindow(parser);
|
||||
MainWindow = window;
|
||||
window.Show();
|
||||
window.CheckMinStatus();
|
||||
HwndSource source = PresentationSource.FromVisual(window) as HwndSource;
|
||||
CreateIPCClassNameMMF(source.Handle);
|
||||
|
||||
window.CheckMinStatus();
|
||||
rootHub.LaunchHidGuardHelper();
|
||||
window.LateChecks(parser);
|
||||
}
|
||||
|
||||
private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
|
||||
|
@ -120,7 +120,10 @@ namespace DS4WinWPF.DS4Forms
|
||||
timerThread.Priority = ThreadPriority.Lowest;
|
||||
timerThread.Start();
|
||||
timerThread.Join();
|
||||
}
|
||||
|
||||
public void LateChecks(ArgumentParser parser)
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
CheckDrivers();
|
||||
|
Loading…
Reference in New Issue
Block a user