forked from Silverfish/proton-bridge
wait for release notes check and then open externally
This commit is contained in:
@ -261,6 +261,9 @@ Item {
|
||||
winMain.tlsBarState="notOK"
|
||||
}
|
||||
|
||||
onOpenReleaseNotesExternally: {
|
||||
Qt.openUrlExternally(go.updateReleaseNotesLink)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -304,12 +307,14 @@ Item {
|
||||
}
|
||||
|
||||
function openReleaseNotes(){
|
||||
if go.updateReleaseNotesLink == "" {
|
||||
go.checkForUpdates()
|
||||
if (go.updateReleaseNotesLink == "") {
|
||||
go.checkAndOpenReleaseNotes()
|
||||
return
|
||||
}
|
||||
Qt.openUrlExternally(go.updateReleaseNotesLink)
|
||||
go.openReleaseNotesExternally()
|
||||
}
|
||||
|
||||
|
||||
// On start
|
||||
Component.onCompleted : {
|
||||
// set messages for translations
|
||||
|
||||
@ -292,6 +292,12 @@ Item {
|
||||
onUpdateFinished : {
|
||||
winMain.dialogUpdate.finished(hasError)
|
||||
}
|
||||
|
||||
onOpenReleaseNotesExternally: {
|
||||
Qt.openUrlExternally(go.updateReleaseNotesLink)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function folderIcon(folderName, folderType) { // translations
|
||||
@ -406,10 +412,11 @@ Item {
|
||||
*/
|
||||
|
||||
function openReleaseNotes(){
|
||||
if go.updateReleaseNotesLink == "" {
|
||||
go.checkForUpdates()
|
||||
if (go.updateReleaseNotesLink == "") {
|
||||
go.checkAndOpenReleaseNotes()
|
||||
return
|
||||
}
|
||||
Qt.openUrlExternally(go.updateReleaseNotesLink)
|
||||
go.openReleaseNotesExternally()
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -202,28 +202,28 @@ Window {
|
||||
testroot.newVersion = false
|
||||
break;
|
||||
case "NotifyManualUpdate(CanInstall)" :
|
||||
go.notifyManualUpdate()
|
||||
go.updateCanInstall = true
|
||||
break;
|
||||
go.notifyManualUpdate()
|
||||
go.updateCanInstall = true
|
||||
break;
|
||||
case "NotifyManualUpdate(CantInstall)" :
|
||||
go.notifyManualUpdate()
|
||||
go.updateCanInstall = false
|
||||
break;
|
||||
go.notifyManualUpdate()
|
||||
go.updateCanInstall = false
|
||||
break;
|
||||
case "NotifyManualUpdateRestart":
|
||||
go.notifyManualUpdateRestartNeeded()
|
||||
break;
|
||||
go.notifyManualUpdateRestartNeeded()
|
||||
break;
|
||||
case "NotifyManualUpdateError":
|
||||
go.notifyManualUpdateError()
|
||||
break;
|
||||
go.notifyManualUpdateError()
|
||||
break;
|
||||
case "ForceUpdate" :
|
||||
go.notifyForceUpdate()
|
||||
break;
|
||||
go.notifyForceUpdate()
|
||||
break;
|
||||
case "NotifySilentUpdateRestartNeeded" :
|
||||
go.notifySilentUpdateRestartNeeded()
|
||||
break;
|
||||
go.notifySilentUpdateRestartNeeded()
|
||||
break;
|
||||
case "NotifySilentUpdateError" :
|
||||
go.notifySilentUpdateError()
|
||||
break;
|
||||
go.notifySilentUpdateError()
|
||||
break;
|
||||
case "SendAlertPopup" :
|
||||
go.showOutgoingNoEncPopup("Alert sending unencrypted!")
|
||||
break;
|
||||
@ -295,11 +295,11 @@ Window {
|
||||
property string programTitle : "ProtonMail Bridge"
|
||||
property string fullversion : "QA.1.0 (d9f8sdf9) 2020-02-19T10:57:23+01:00"
|
||||
property string downloadLink: "https://protonmail.com/download/beta/protonmail-bridge-1.1.5-1.x86_64.rpm;https://www.protonmail.com/downloads/beta/Desktop-Bridge-link1.exe;https://www.protonmail.com/downloads/beta/Desktop-Bridge-link1.exe;https://www.protonmail.com/downloads/beta/Desktop-Bridge-link1.exe;"
|
||||
|
||||
|
||||
property string updateVersion : "QA.1.0"
|
||||
property bool updateCanInstall: true
|
||||
property string updateLandingPage : "https://protonmail.com/bridge/download/"
|
||||
property string updateReleaseNotesLink : "https://protonmail.com/download/bridge/release_notes.html"
|
||||
property string updateReleaseNotesLink : "" // "https://protonmail.com/download/bridge/release_notes.html"
|
||||
signal notifyManualUpdate()
|
||||
signal notifyManualUpdateRestartNeeded()
|
||||
signal notifyManualUpdateError()
|
||||
@ -312,6 +312,11 @@ Window {
|
||||
function startManualUpdate() {
|
||||
console.log("startManualUpdate")
|
||||
}
|
||||
function checkAndOpenReleaseNotes() {
|
||||
console.log("check for release notes")
|
||||
go.updateReleaseNotesLink = "https://protonmail.com/download/bridge/release_notes.html"
|
||||
go.openReleaseNotesExternally()
|
||||
}
|
||||
|
||||
|
||||
property string credits : "here;goes;list;;of;;used;packages;"
|
||||
@ -342,13 +347,14 @@ Window {
|
||||
signal notifyBubble(int tabIndex, string message)
|
||||
signal silentBubble(int tabIndex, string message)
|
||||
signal setAddAccountWarning(string message)
|
||||
|
||||
|
||||
signal notifyFirewall()
|
||||
signal notifyLogout(string accname)
|
||||
signal notifyAddressChanged(string accname)
|
||||
signal notifyAddressChangedLogout(string accname)
|
||||
signal failedAutostartCode(string code)
|
||||
|
||||
signal openReleaseNotesExternally()
|
||||
signal showCertIssue()
|
||||
|
||||
signal updateFinished(bool hasError)
|
||||
|
||||
@ -167,28 +167,28 @@ Window {
|
||||
go.goos = "linux";
|
||||
break;
|
||||
case "NotifyManualUpdate(CanInstall)" :
|
||||
go.notifyManualUpdate()
|
||||
go.updateCanInstall = true
|
||||
break;
|
||||
go.notifyManualUpdate()
|
||||
go.updateCanInstall = true
|
||||
break;
|
||||
case "NotifyManualUpdate(CantInstall)" :
|
||||
go.notifyManualUpdate()
|
||||
go.updateCanInstall = false
|
||||
break;
|
||||
go.notifyManualUpdate()
|
||||
go.updateCanInstall = false
|
||||
break;
|
||||
case "NotifyManualUpdateRestart":
|
||||
go.notifyManualUpdateRestartNeeded()
|
||||
break;
|
||||
go.notifyManualUpdateRestartNeeded()
|
||||
break;
|
||||
case "NotifyManualUpdateError":
|
||||
go.notifyManualUpdateError()
|
||||
break;
|
||||
go.notifyManualUpdateError()
|
||||
break;
|
||||
case "ForceUpdate" :
|
||||
go.notifyForceUpdate()
|
||||
break;
|
||||
go.notifyForceUpdate()
|
||||
break;
|
||||
case "NotifySilentUpdateRestartNeeded" :
|
||||
go.notifySilentUpdateRestartNeeded()
|
||||
break;
|
||||
go.notifySilentUpdateRestartNeeded()
|
||||
break;
|
||||
case "NotifySilentUpdateError" :
|
||||
go.notifySilentUpdateError()
|
||||
break;
|
||||
go.notifySilentUpdateError()
|
||||
break;
|
||||
case "ImportStructure" :
|
||||
testgui.winMain.dialogImport.address = "cuto@pm.com"
|
||||
testgui.winMain.dialogImport.show()
|
||||
@ -855,7 +855,7 @@ Window {
|
||||
property string programTitle : "ProtonMail Import-Export app"
|
||||
property string fullversion : "QA.1.0 (d9f8sdf9) 2020-02-19T10:57:23+01:00"
|
||||
property string downloadLink: "https://protonmail.com/download/beta/protonmail-bridge-1.1.5-1.x86_64.rpm;https://www.protonmail.com/downloads/beta/Desktop-Bridge-link1.exe;https://www.protonmail.com/downloads/beta/Desktop-Bridge-link1.exe;https://www.protonmail.com/downloads/beta/Desktop-Bridge-link1.exe;"
|
||||
|
||||
|
||||
property string updateVersion : "q0.1.0"
|
||||
property bool updateCanInstall: true
|
||||
property string updateLandingPage : "https://protonmail.com/import-export/download/"
|
||||
@ -872,6 +872,11 @@ Window {
|
||||
function startManualUpdate() {
|
||||
console.log("startManualUpdate")
|
||||
}
|
||||
function checkAndOpenReleaseNotes() {
|
||||
console.log("check for release notes")
|
||||
go.updateReleaseNotesLink = "https://protonmail.com/download/import-export/release_notes.html"
|
||||
go.openReleaseNotesExternally()
|
||||
}
|
||||
|
||||
property real progress: 0.0
|
||||
property int progressFails: 0
|
||||
@ -912,6 +917,8 @@ Window {
|
||||
signal notifyUpdate()
|
||||
signal updateFinished(bool hasError)
|
||||
|
||||
signal openReleaseNotesExternally()
|
||||
|
||||
signal notifyLogout(string accname)
|
||||
|
||||
signal notifyError(int errCode)
|
||||
|
||||
Reference in New Issue
Block a user