mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 11:04:21 +01:00
Fix for select an action window popping up when connecting a controller in some circumstances
DS4Updater: quicker startup, will only replace updater if the version is actually newer, smaller size
This commit is contained in:
parent
890ef1237d
commit
46e529f7be
@ -43,12 +43,12 @@ namespace ScpServer
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
Process current = Process.GetCurrentProcess();
|
Process current = Process.GetCurrentProcess();
|
||||||
foreach (Process process in Process.GetProcessesByName(current.ProcessName))
|
foreach (Process process in Process.GetProcessesByName("DS4Windows"))
|
||||||
{
|
{
|
||||||
if (process.Id != current.Id)
|
if (process.Id != current.Id)
|
||||||
{
|
{
|
||||||
SetForegroundWindow(process.MainWindowHandle);
|
SetForegroundWindow(process.MainWindowHandle);
|
||||||
if (GetForegroundWindow() != process.MainWindowHandle)
|
if (GetForegroundWindow() != process.MainWindowHandle) //if tool is minimized to tray
|
||||||
{
|
{
|
||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.4.0.1")]
|
[assembly: AssemblyVersion("1.4.0.11")]
|
||||||
[assembly: AssemblyFileVersion("1.4.0.1")]
|
[assembly: AssemblyFileVersion("1.4.0.11")]
|
||||||
|
@ -627,8 +627,12 @@ namespace ScpServer
|
|||||||
if (Pads[Index].Text != "Connecting...")
|
if (Pads[Index].Text != "Connecting...")
|
||||||
{
|
{
|
||||||
Enable_Controls(Index, true);
|
Enable_Controls(Index, true);
|
||||||
|
if (opt != null)
|
||||||
|
opt.inputtimer.Start();
|
||||||
//MinimumSize = new Size(MinimumSize.Width, 137 + 29 * Index);
|
//MinimumSize = new Size(MinimumSize.Width, 137 + 29 * Index);
|
||||||
}
|
}
|
||||||
|
else if (opt != null)
|
||||||
|
opt.inputtimer.Stop();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user