mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-22 21:21:17 +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");
|
||||
this.btnStartStop.Name = "btnStartStop";
|
||||
this.btnStartStop.UseVisualStyleBackColor = true;
|
||||
this.btnStartStop.Click += new System.EventHandler(this.btnStartStop_Click);
|
||||
this.btnStartStop.Click += new System.EventHandler(this.BtnStartStop_Click);
|
||||
//
|
||||
// lbLastMessage
|
||||
//
|
||||
|
@ -886,12 +886,12 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
chData.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize);
|
||||
}
|
||||
|
||||
protected void btnStartStop_Click(object sender, EventArgs e)
|
||||
private void BtnStartStop_Click(object sender, EventArgs e)
|
||||
{
|
||||
BtnStartStop_Clicked();
|
||||
}
|
||||
|
||||
private void serviceStartup(bool log)
|
||||
private void ServiceStartup(bool log)
|
||||
{
|
||||
var uiContext = SynchronizationContext.Current;
|
||||
changingService = true;
|
||||
@ -899,12 +899,12 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
{
|
||||
//Thread.CurrentThread.Priority = ThreadPriority.AboveNormal;
|
||||
Program.rootHub.Start(uiContext, log);
|
||||
Invoke((System.Action)(() => { serviceStartupFinish(); }));
|
||||
Invoke((System.Action)(() => { ServiceStartupFinish(); }));
|
||||
changingService = false;
|
||||
});
|
||||
}
|
||||
|
||||
private void serviceStartupFinish()
|
||||
private void ServiceStartupFinish()
|
||||
{
|
||||
if (SwipeProfiles && !hotkeysTimer.Enabled)
|
||||
{
|
||||
@ -925,12 +925,12 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
TaskRunner.Run(() =>
|
||||
{
|
||||
Program.rootHub.Stop(log, suspend);
|
||||
Invoke((System.Action)(() => { serviceShutdownFinish(); }));
|
||||
Invoke((System.Action)(() => { ServiceShutdownFinish(); }));
|
||||
changingService = false;
|
||||
});
|
||||
}
|
||||
|
||||
private void serviceShutdownFinish()
|
||||
private void ServiceShutdownFinish()
|
||||
{
|
||||
hotkeysTimer.Stop();
|
||||
autoProfilesTimer.Stop();
|
||||
@ -943,7 +943,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
{
|
||||
if (btnStartStop.Text == Properties.Resources.StartText)
|
||||
{
|
||||
serviceStartup(log);
|
||||
ServiceStartup(log);
|
||||
}
|
||||
else if (btnStartStop.Text == Properties.Resources.StopText)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user