fix: clean device disconnection when loading setup files

This commit is contained in:
Jan Käberich 2024-12-03 08:05:16 +01:00
parent 6ea8869f7f
commit 199975bdd0

View file

@ -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();