Fix update notification not opening browser

pull/192/head
Peter Repukat 2 years ago
parent d2fd3a75da
commit eacd05b4c6

@ -117,8 +117,8 @@ Window {
titleText: qsTr("New version available!") titleText: qsTr("New version available!")
text: uiModel.newVersionName + "\n\n" + qsTr("Would you like to visit the download page now?") text: uiModel.newVersionName + "\n\n" + qsTr("Would you like to visit the download page now?")
onConfirmed: function (callback) { onConfirmed: function (callback) {
Qt.openUrlExternally(`https://glossi.flatspot.pictures/#downloads${ uiModel.newVersionName.includes('snapshot') ? '-snapshots' : '' }-${uiModel.newVersionName}`);
callback(); callback();
Qt.openUrlExternally(`https://glossi.flatspot.pictures/#downloads-${uiModel.newVersionName}`);
} }
buttonText: qsTr("Yes") buttonText: qsTr("Yes")
extraButton: true extraButton: true

Loading…
Cancel
Save