mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02: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();
|
||||
}
|
||||
|
||||
if (!state.connected)
|
||||
if (!m_isEnteringDfu && !state.connected)
|
||||
{
|
||||
m_isEnteringDfu = false;
|
||||
m_backButton->Enable();
|
||||
|
||||
Reference in new issue
Block a user