mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-23 23:21:49 +01:00
Tweak disconnect routine
This commit is contained in:
parent
64e8a137e1
commit
51cbe22a90
@ -1401,7 +1401,12 @@ namespace DS4Windows
|
||||
DS4Device d = ctrl.DS4Controllers[device];
|
||||
if (!d.Charging)
|
||||
{
|
||||
d.DisconnectBT();
|
||||
ConnectionType deviceConn = d.ConnectionType;
|
||||
if (deviceConn == ConnectionType.BT)
|
||||
{
|
||||
d.DisconnectBT();
|
||||
}
|
||||
|
||||
foreach (DS4Controls dc in action.trigger)
|
||||
{
|
||||
DS4ControlSettings dcs = getDS4CSetting(device, dc);
|
||||
|
@ -771,7 +771,7 @@ namespace DS4Windows
|
||||
if (result)
|
||||
{
|
||||
IsDisconnecting = true;
|
||||
StopUpdate();
|
||||
StopOutputUpdate();
|
||||
if (Removal != null)
|
||||
Removal(this, EventArgs.Empty);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user