mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-02 10:02:36 +01:00
Minor tweak
This commit is contained in:
parent
16341d37b5
commit
0ebfa8b96e
2
DS4Windows/DS4Forms/DS4Form.Designer.cs
generated
2
DS4Windows/DS4Forms/DS4Form.Designer.cs
generated
@ -246,7 +246,7 @@
|
|||||||
resources.ApplyResources(this.btnStartStop, "btnStartStop");
|
resources.ApplyResources(this.btnStartStop, "btnStartStop");
|
||||||
this.btnStartStop.Name = "btnStartStop";
|
this.btnStartStop.Name = "btnStartStop";
|
||||||
this.btnStartStop.UseVisualStyleBackColor = true;
|
this.btnStartStop.UseVisualStyleBackColor = true;
|
||||||
this.btnStartStop.Click += new System.EventHandler(this.btnStartStop_Click);
|
this.btnStartStop.Click += new System.EventHandler(this.BtnStartStop_Click);
|
||||||
//
|
//
|
||||||
// lbLastMessage
|
// lbLastMessage
|
||||||
//
|
//
|
||||||
|
@ -886,12 +886,12 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
|||||||
chData.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize);
|
chData.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void btnStartStop_Click(object sender, EventArgs e)
|
private void BtnStartStop_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
BtnStartStop_Clicked();
|
BtnStartStop_Clicked();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void serviceStartup(bool log)
|
private void ServiceStartup(bool log)
|
||||||
{
|
{
|
||||||
var uiContext = SynchronizationContext.Current;
|
var uiContext = SynchronizationContext.Current;
|
||||||
changingService = true;
|
changingService = true;
|
||||||
@ -899,12 +899,12 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
|||||||
{
|
{
|
||||||
//Thread.CurrentThread.Priority = ThreadPriority.AboveNormal;
|
//Thread.CurrentThread.Priority = ThreadPriority.AboveNormal;
|
||||||
Program.rootHub.Start(uiContext, log);
|
Program.rootHub.Start(uiContext, log);
|
||||||
Invoke((System.Action)(() => { serviceStartupFinish(); }));
|
Invoke((System.Action)(() => { ServiceStartupFinish(); }));
|
||||||
changingService = false;
|
changingService = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void serviceStartupFinish()
|
private void ServiceStartupFinish()
|
||||||
{
|
{
|
||||||
if (SwipeProfiles && !hotkeysTimer.Enabled)
|
if (SwipeProfiles && !hotkeysTimer.Enabled)
|
||||||
{
|
{
|
||||||
@ -925,12 +925,12 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
|||||||
TaskRunner.Run(() =>
|
TaskRunner.Run(() =>
|
||||||
{
|
{
|
||||||
Program.rootHub.Stop(log, suspend);
|
Program.rootHub.Stop(log, suspend);
|
||||||
Invoke((System.Action)(() => { serviceShutdownFinish(); }));
|
Invoke((System.Action)(() => { ServiceShutdownFinish(); }));
|
||||||
changingService = false;
|
changingService = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void serviceShutdownFinish()
|
private void ServiceShutdownFinish()
|
||||||
{
|
{
|
||||||
hotkeysTimer.Stop();
|
hotkeysTimer.Stop();
|
||||||
autoProfilesTimer.Stop();
|
autoProfilesTimer.Stop();
|
||||||
@ -943,7 +943,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
|||||||
{
|
{
|
||||||
if (btnStartStop.Text == Properties.Resources.StartText)
|
if (btnStartStop.Text == Properties.Resources.StartText)
|
||||||
{
|
{
|
||||||
serviceStartup(log);
|
ServiceStartup(log);
|
||||||
}
|
}
|
||||||
else if (btnStartStop.Text == Properties.Resources.StopText)
|
else if (btnStartStop.Text == Properties.Resources.StopText)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user