removed invalid code, and fixed top button hidden-shown
This commit is contained in:
parent
a75bd07cd8
commit
d0f8358431
14 changed files with 58 additions and 63 deletions
|
|
@ -369,12 +369,12 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
InstallController.removeCurrentlyProcessedContainer()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
}
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -183,12 +183,12 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
InstallController.removeCurrentlyProcessedContainer()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
}
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,12 +68,12 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
InstallController.removeCurrentlyProcessedContainer()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
}
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -265,12 +265,12 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
InstallController.removeCurrentlyProcessedContainer()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
}
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -143,12 +143,12 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
InstallController.removeCurrentlyProcessedContainer()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
}
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -152,12 +152,12 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
SettingsController.clearSettings()
|
||||
PageController.replaceStartPage()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
}
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,13 +138,13 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
PageController.showBusyIndicator(true)
|
||||
SettingsController.restoreAppConfig(filePath)
|
||||
PageController.showBusyIndicator(false)
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
}
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
SettingsController.primaryDns = "1.1.1.1"
|
||||
primaryDns.textFieldText = SettingsController.primaryDns
|
||||
SettingsController.secondaryDns = "1.0.0.1"
|
||||
|
|
@ -99,7 +99,7 @@ PageType {
|
|||
PageController.showNotificationMessage(qsTr("Settings have been reset"))
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
}
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -146,14 +146,14 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
PageController.showBusyIndicator(true)
|
||||
SettingsController.clearLogs()
|
||||
PageController.showBusyIndicator(false)
|
||||
PageController.showNotificationMessage(qsTr("Logs have been cleaned up"))
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
}
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,13 +94,13 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
PageController.showBusyIndicator(true)
|
||||
SettingsController.clearCachedProfiles()
|
||||
PageController.showBusyIndicator(false)
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
}
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
|
@ -172,7 +172,7 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
if (ServersModel.isDefaultServerCurrentlyProcessed() && ConnectionController.isConnected) {
|
||||
ConnectionController.closeConnection()
|
||||
|
|
@ -180,7 +180,7 @@ PageType {
|
|||
InstallController.removeAllContainers()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
}
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,12 +119,12 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
InstallController.removeCurrentlyProcessedContainer()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
}
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -202,11 +202,11 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
SitesController.removeSite(index)
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.onClose()
|
||||
questionDrawer.close()
|
||||
}
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ PageType {
|
|||
ConnectionTypeSelectionDrawer {
|
||||
id: connectionTypeSelection
|
||||
|
||||
onClose: function() {
|
||||
onClosed: {
|
||||
tabBar.setCurrentIndex(tabBar.previousIndex)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue