From 02fe95fbfc86484dfa15e6bf393c859773472c3f Mon Sep 17 00:00:00 2001 From: CLARATION Date: Sat, 1 Aug 2026 18:57:34 -0700 Subject: [PATCH] fix(tui/wx): remove device check in exploit panel --- src/tui/TuiExploitPanel.cpp | 6 ------ src/wx/ExploitPanel.cpp | 6 ------ 2 files changed, 12 deletions(-) diff --git a/src/tui/TuiExploitPanel.cpp b/src/tui/TuiExploitPanel.cpp index 515c82d..530844a 100644 --- a/src/tui/TuiExploitPanel.cpp +++ b/src/tui/TuiExploitPanel.cpp @@ -118,12 +118,6 @@ void TuiExploitPanel::exploit() std::thread([this]() { - const DeviceState deviceState = GetFrame()->GetDeviceState(); - if (!deviceState.connected || (deviceState.mode != DeviceMode::DFU && deviceState.mode != DeviceMode::Pongo)) { - m_is_exploiting = false; - return; - } - auto stage = std::make_shared>(STAGE_RESET); auto result = std::make_shared>(0); diff --git a/src/wx/ExploitPanel.cpp b/src/wx/ExploitPanel.cpp index d10ce7d..839198f 100644 --- a/src/wx/ExploitPanel.cpp +++ b/src/wx/ExploitPanel.cpp @@ -109,12 +109,6 @@ void ExploitPanel::StartExploit() std::thread([this]() { - const auto deviceState = GetDeviceState(); - if (!deviceState.connected || (deviceState.mode != DeviceMode::DFU && deviceState.mode != DeviceMode::Pongo)) { - wxTheApp->CallAfter([this]() { m_backButton->Enable(); }); - return; - } - auto stage = std::make_shared>(STAGE_RESET); auto result = std::make_shared>(0);