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:
jays2kings 2014-07-09 13:18:11 -04:00
parent 890ef1237d
commit 46e529f7be
3 changed files with 9 additions and 5 deletions

View File

@ -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)
if (GetForegroundWindow() != process.MainWindowHandle) //if tool is minimized to tray
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);

View File

@ -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")]

View File

@ -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
{