fix(tui/wx): remove device check in exploit panel

This commit is contained in:
CLARATION committed 2026-08-01 18:57:34 -07:00
1 parent b760cc1d83
commit 02fe95fbfc
2 files changed
-12

No files matched your search

-6
View File
@@ -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<std::atomic<int>>(STAGE_RESET);
auto result = std::make_shared<std::atomic<int>>(0);
-6
View File
@@ -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<std::atomic<int>>(STAGE_RESET);
auto result = std::make_shared<std::atomic<int>>(0);