mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-23 06:03:55 +01:00
fix(wx): handle dfu disconnects properly
This commit is contained in:
1 parent
372531f6ca
commit
58c458b46c
1 file changed
+1
-1
+1
-1
@@ -167,7 +167,7 @@ void DfuPanel::SetDeviceState(const DeviceState& state)
|
|||||||
GetMainFrame()->ShowMain();
|
GetMainFrame()->ShowMain();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!state.connected)
|
if (!m_isEnteringDfu && !state.connected)
|
||||||
{
|
{
|
||||||
m_isEnteringDfu = false;
|
m_isEnteringDfu = false;
|
||||||
m_backButton->Enable();
|
m_backButton->Enable();
|
||||||
|
|||||||
Reference in new issue
Block a user