Prevent editing active container (#749)
* Prevent editing active container * Prevent clear active container's cache
This commit is contained in:
parent
0dd181bb5b
commit
79edbe52a3
8 changed files with 43 additions and 8 deletions
|
@ -105,6 +105,12 @@ PageType {
|
|||
var noButtonText = qsTr("Cancel")
|
||||
|
||||
var yesButtonFunction = function() {
|
||||
if (ConnectionController.isConnected && ServersModel.getDefaultServerData("defaultContainer") === ContainersModel.getProcessedContainerIndex()) {
|
||||
var message = qsTr("Unable to clear %1 profile while there is an active connection").arg(ContainersModel.getProcessedContainerName())
|
||||
PageController.showNotificationMessage(message)
|
||||
return
|
||||
}
|
||||
|
||||
PageController.showBusyIndicator(true)
|
||||
InstallController.clearCachedProfile()
|
||||
PageController.showBusyIndicator(false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue