bugfix: fixed transition to the "Installed services" page when importing a config that does not have installed containers

This commit is contained in:
vladimir.kuznetsov 2022-12-03 15:23:52 +03:00
parent b62d0697be
commit 0da63062d7
2 changed files with 12 additions and 10 deletions

View file

@ -166,14 +166,6 @@ bool StartPageLogic::importConnection(const QJsonObject &profile)
return false;
}
if (!profile.contains(config_key::containers)) {
uiLogic()->selectedServerIndex = m_settings->defaultServerIndex();
uiLogic()->selectedDockerContainer = m_settings->defaultContainer(uiLogic()->selectedServerIndex);
uiLogic()->onUpdateAllPages();
emit uiLogic()->goToPage(Page::ServerContainers);
}
return true;
}