forked from Silverfish/proton-bridge
GODT-976 Exclude updates from clearing cache and clear cache, including updates, while switching early access off
This commit is contained in:
@ -294,7 +294,7 @@ Dialog {
|
||||
}
|
||||
},
|
||||
State {
|
||||
name: "toggleEarlyAccess"
|
||||
name: "toggleEarlyAccessOn"
|
||||
PropertyChanges {
|
||||
target: root
|
||||
currentIndex : 0
|
||||
@ -304,6 +304,17 @@ Dialog {
|
||||
answer : qsTr("Enabling early access...")
|
||||
}
|
||||
},
|
||||
State {
|
||||
name: "toggleEarlyAccessOff"
|
||||
PropertyChanges {
|
||||
target: root
|
||||
currentIndex : 0
|
||||
question : qsTr("Are you sure you want to leave early access? Please keep in mind this operation clears the cache and restarts Bridge.")
|
||||
note : qsTr("This will delete all of your stored preferences as well as cached email data for all accounts, temporarily slowing down the email download process significantly.")
|
||||
title : qsTr("Disable early access")
|
||||
answer : qsTr("Disabling early access...")
|
||||
}
|
||||
},
|
||||
State {
|
||||
name: "noKeychain"
|
||||
PropertyChanges {
|
||||
@ -375,7 +386,8 @@ Dialog {
|
||||
if ( state == "logout" ) { go.logoutAccount (input) }
|
||||
if ( state == "toggleAutoStart" ) { go.toggleAutoStart () }
|
||||
if ( state == "toggleAllowProxy" ) { go.toggleAllowProxy () }
|
||||
if ( state == "toggleEarlyAccess" ) { go.toggleEarlyAccess () }
|
||||
if ( state == "toggleEarlyAccessOn" ) { go.toggleEarlyAccess () }
|
||||
if ( state == "toggleEarlyAccessOff" ) { go.toggleEarlyAccess () }
|
||||
if ( state == "quit" ) { Qt.quit () }
|
||||
if ( state == "instance exists" ) { Qt.quit () }
|
||||
if ( state == "noKeychain" ) { Qt.quit () }
|
||||
|
||||
@ -150,9 +150,10 @@ Item {
|
||||
) + " " + text
|
||||
onClicked: {
|
||||
if (go.isEarlyAccess == true) {
|
||||
go.toggleEarlyAccess()
|
||||
dialogGlobal.state="toggleEarlyAccessOff"
|
||||
dialogGlobal.show()
|
||||
} else {
|
||||
dialogGlobal.state="toggleEarlyAccess"
|
||||
dialogGlobal.state="toggleEarlyAccessOn"
|
||||
dialogGlobal.show()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user