fix: Make scan button enabled when dms disconnected.

This commit is contained in:
sunwen
2025-03-24 16:16:45 +08:00
parent 503663a621
commit 014fb8383b
2 changed files with 14 additions and 13 deletions

View File

@@ -336,6 +336,7 @@ void DeviceManager::startScan(const QString& json, bool empty)
DeviceStatus inf = getDeviceStatus();
if(inf == DeviceStatus::Unkonw)
{
TRIGGER_EVENT(StopScanProcess, nullptr, nullptr);
return;
}
if (inf != DeviceStatus::Rready)