feature: added prohibition to change location when connection is active
This commit is contained in:
parent
9b7303f656
commit
b196be127b
1 changed files with 6 additions and 0 deletions
|
|
@ -54,8 +54,14 @@ PageType {
|
||||||
imageSource: "qrc:/images/controls/download.svg"
|
imageSource: "qrc:/images/controls/download.svg"
|
||||||
|
|
||||||
checked: index === ApiCountryModel.currentIndex
|
checked: index === ApiCountryModel.currentIndex
|
||||||
|
checkable: !ConnectionController.isConnected
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
if (ConnectionController.isConnected) {
|
||||||
|
PageController.showNotificationMessage(qsTr("Unable change server location while there is an active connection"))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (index !== ApiCountryModel.currentIndex) {
|
if (index !== ApiCountryModel.currentIndex) {
|
||||||
PageController.showBusyIndicator(true)
|
PageController.showBusyIndicator(true)
|
||||||
var prevIndex = ApiCountryModel.currentIndex
|
var prevIndex = ApiCountryModel.currentIndex
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue