Revert "added new drawer2type for replacing drawertype"
This commit is contained in:
parent
4551cf0a21
commit
d98fdbdc5c
28 changed files with 276 additions and 639 deletions
|
@ -14,8 +14,6 @@ import "../Components"
|
|||
PageType {
|
||||
id: root
|
||||
|
||||
property Item questionDrawerParent
|
||||
|
||||
Connections {
|
||||
target: InstallController
|
||||
|
||||
|
@ -96,15 +94,15 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.close()
|
||||
questionDrawer.visible = false
|
||||
PageController.showBusyIndicator(true)
|
||||
SettingsController.clearCachedProfiles()
|
||||
PageController.showBusyIndicator(false)
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.close()
|
||||
questionDrawer.visible = false
|
||||
}
|
||||
questionDrawer.open()
|
||||
questionDrawer.visible = true
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -143,7 +141,7 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.close()
|
||||
questionDrawer.visible = false
|
||||
PageController.showBusyIndicator(true)
|
||||
if (ServersModel.isDefaultServerCurrentlyProcessed() && ConnectionController.isConnected) {
|
||||
ConnectionController.closeConnection()
|
||||
|
@ -152,9 +150,9 @@ PageType {
|
|||
PageController.showBusyIndicator(false)
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.close()
|
||||
questionDrawer.visible = false
|
||||
}
|
||||
questionDrawer.open()
|
||||
questionDrawer.visible = true
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -174,7 +172,7 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.close()
|
||||
questionDrawer.visible = false
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
if (ServersModel.isDefaultServerCurrentlyProcessed() && ConnectionController.isConnected) {
|
||||
ConnectionController.closeConnection()
|
||||
|
@ -182,9 +180,9 @@ PageType {
|
|||
InstallController.removeAllContainers()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.close()
|
||||
questionDrawer.visible = false
|
||||
}
|
||||
questionDrawer.open()
|
||||
questionDrawer.visible = true
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -194,10 +192,6 @@ PageType {
|
|||
|
||||
QuestionDrawer {
|
||||
id: questionDrawer
|
||||
|
||||
drawerHeight: 0.5
|
||||
|
||||
parent: questionDrawerParent
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue