mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-01-20 15:40:38 +01:00
fix: clean device disconnection when loading setup files
This commit is contained in:
parent
6ea8869f7f
commit
199975bdd0
|
|
@ -1418,8 +1418,7 @@ void AppWindow::LoadSetup(nlohmann::json j)
|
|||
QString serial = QString();
|
||||
if(device) {
|
||||
serial = device->getSerial();
|
||||
device->disconnectDevice();
|
||||
device = nullptr;
|
||||
DisconnectDevice();
|
||||
}
|
||||
|
||||
modeHandler->closeModes();
|
||||
|
|
|
|||
Loading…
Reference in a new issue