mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-25 08:01:49 +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
|
||||
{
|
||||
Process current = Process.GetCurrentProcess();
|
||||
foreach (Process process in Process.GetProcessesByName(current.ProcessName))
|
||||
foreach (Process process in Process.GetProcessesByName("DS4Windows"))
|
||||
{
|
||||
if (process.Id != current.Id)
|
||||
{
|
||||
SetForegroundWindow(process.MainWindowHandle);
|
||||
if (GetForegroundWindow() != process.MainWindowHandle)
|
||||
SetForegroundWindow(process.MainWindowHandle);
|
||||
if (GetForegroundWindow() != process.MainWindowHandle) //if tool is minimized to tray
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
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
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.4.0.1")]
|
||||
[assembly: AssemblyFileVersion("1.4.0.1")]
|
||||
[assembly: AssemblyVersion("1.4.0.11")]
|
||||
[assembly: AssemblyFileVersion("1.4.0.11")]
|
||||
|
@ -627,8 +627,12 @@ namespace ScpServer
|
||||
if (Pads[Index].Text != "Connecting...")
|
||||
{
|
||||
Enable_Controls(Index, true);
|
||||
if (opt != null)
|
||||
opt.inputtimer.Start();
|
||||
//MinimumSize = new Size(MinimumSize.Width, 137 + 29 * Index);
|
||||
}
|
||||
else if (opt != null)
|
||||
opt.inputtimer.Stop();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user