fix connection button behavior (#595)

Fix connection button behavior
This commit is contained in:
Andrey Zaharow
2024-02-17 21:57:31 +02:00
committed by GitHub
parent 8cb298937f
commit b05a5ee1c6
5 changed files with 28 additions and 19 deletions
+2 -4
View File
@@ -138,9 +138,7 @@ Button {
}
onClicked: {
if (!ConnectionController.isConnectionInProgress) {
ServersModel.setCurrentlyProcessedServerIndex(ServersModel.defaultIndex)
ApiController.updateServerConfigFromApi()
}
ServersModel.setCurrentlyProcessedServerIndex(ServersModel.defaultIndex)
ApiController.updateServerConfigFromApi()
}
}
-8
View File
@@ -113,14 +113,6 @@ PageType {
}
}
Connections {
target: ApiController
function onErrorOccurred(errorMessage) {
PageController.showErrorMessage(errorMessage)
}
}
StackViewType {
id: tabBarStackView