From eacd05b4c65c225087912baac0631737052e5548 Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Wed, 5 Oct 2022 14:53:01 +0200 Subject: [PATCH] Fix update notification not opening browser --- GlosSIConfig/qml/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GlosSIConfig/qml/main.qml b/GlosSIConfig/qml/main.qml index cfc7b38..3894e96 100644 --- a/GlosSIConfig/qml/main.qml +++ b/GlosSIConfig/qml/main.qml @@ -117,8 +117,8 @@ Window { titleText: qsTr("New version available!") text: uiModel.newVersionName + "\n\n" + qsTr("Would you like to visit the download page now?") onConfirmed: function (callback) { + Qt.openUrlExternally(`https://glossi.flatspot.pictures/#downloads${ uiModel.newVersionName.includes('snapshot') ? '-snapshots' : '' }-${uiModel.newVersionName}`); callback(); - Qt.openUrlExternally(`https://glossi.flatspot.pictures/#downloads-${uiModel.newVersionName}`); } buttonText: qsTr("Yes") extraButton: true