Skip to content

Commit

Permalink
fix: clean device disconnection when loading setup files
Browse files Browse the repository at this point in the history
  • Loading branch information
jankae committed Dec 3, 2024
1 parent 6ea8869 commit 199975b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Software/PC_Application/LibreVNA-GUI/appwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 199975b

Please sign in to comment.