Fixing Update Option

parent fa456af4
Pipeline #1780 passed with stage
in 7 minutes and 55 seconds
......@@ -39,15 +39,9 @@ bool XmlUpdateInfoParser::parse(QString s)
m_vid = table.lookup("VersionId");
m_releaseDate = table.lookup("ReleaseDate");
m_releaseNotes = table.lookup("ReleaseNotes");
#ifdef Q_OS_WIN32
if (Constants::getBool("Portable")) {
m_downloadUrl = table.lookup("DownloadLinks/WindowsPortable");
} else {
m_downloadUrl = table.lookup("DownloadLinks/WindowsInstaller");
}
#else
m_downloadUrl = "";
#endif
m_downloadUrlWindows = table.lookup("DownloadLinks/WindowsInstaller");
m_downloadUrlLinux = table.lookup("DownloadLinks/LinuxInstaller");
m_downloadUrlMacOS = table.lookup("DownloadLinks/MacOSInstaller");
m_downloadPage = table.lookup("DownloadPage");
if (!m_version.isEmpty())
......@@ -78,7 +72,15 @@ QString XmlUpdateInfoParser::releaseNotes() const
QString XmlUpdateInfoParser::downloadUrl() const
{
return m_downloadUrl;
#ifdef Q_OS_WIN32
return m_downloadUrlWindows;
#endif
#ifdef Q_OS_LINUX
return m_downloadUrlLinux;
#endif
#ifdef Q_OS_MACOS
return m_downloadUrlMacOS;
#endif
}
QString XmlUpdateInfoParser::downloadPage() const
......
......@@ -55,7 +55,9 @@ private:
QString m_vid;
QString m_releaseDate;
QString m_releaseNotes;
QString m_downloadUrl;
QString m_downloadUrlWindows;
QString m_downloadUrlLinux;
QString m_downloadUrlMacOS;
QString m_downloadPage;
};
......
......@@ -1268,5 +1268,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>بإمكانك تنزيل هذه النسخة من الرابط:</translation>
</message>
<message>
<source>Check Update</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1285,5 +1285,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Tuto verzi si můžete stáhnout pomocí odkazu:</translation>
</message>
<message>
<source>Check Update</source>
<translation>Zkontrolovat Aktualizace</translation>
</message>
</context>
</TS>
......@@ -1271,5 +1271,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Sie können diese Version über den folgenden Link herunterladen:</translation>
</message>
<message>
<source>Check Update</source>
<translation>Aktualisierung Überprüfen</translation>
</message>
</context>
</TS>
......@@ -1269,5 +1269,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Puede descargar esta versión usando el enlace:</translation>
</message>
<message>
<source>Check Update</source>
<translation>Chequear Actualizaciones</translation>
</message>
</context>
</TS>
......@@ -1271,5 +1271,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Vous pouvez télécharger cette version depuis le lien :</translation>
</message>
<message>
<source>Check Update</source>
<translation>Vérifier la mise à jour</translation>
</message>
</context>
</TS>
......@@ -1327,5 +1327,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Podes descargar esta versión usando a ligazón:</translation>
</message>
<message>
<source>Check Update</source>
<translation>Comprobe Actualizar</translation>
</message>
</context>
</TS>
......@@ -1285,5 +1285,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Ezt a kiadást letöltheti az alábbi linken:</translation>
</message>
<message>
<source>Check Update</source>
<translation>Frissítés Ellenőrzése</translation>
</message>
</context>
</TS>
......@@ -1271,5 +1271,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Puoi scaricare questa versione usando il collegamento:</translation>
</message>
<message>
<source>Check Update</source>
<translation>Controlla Aggiornamento</translation>
</message>
</context>
</TS>
......@@ -1269,5 +1269,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>このバージョンは、次のリンクからダウンロードできます:</translation>
</message>
<message>
<source>Check Update</source>
<translation>アップデートをチェックする</translation>
</message>
</context>
</TS>
......@@ -1266,5 +1266,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Check Update</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1290,5 +1290,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Możesz pobrać tą wersję, za pomocą linku:</translation>
</message>
<message>
<source>Check Update</source>
<translation>Sprawdź Aktualizację</translation>
</message>
</context>
</TS>
......@@ -1271,5 +1271,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Você pode baixar essa versão usando o link:</translation>
</message>
<message>
<source>Check Update</source>
<translation>Checar Atualização</translation>
</message>
</context>
</TS>
......@@ -1268,5 +1268,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Poți descărca această versiunea folosind legătura:</translation>
</message>
<message>
<source>Check Update</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1267,5 +1267,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Вы можете скачать эту версию по ссылке:</translation>
</message>
<message>
<source>Check Update</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1326,5 +1326,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Вы можете скачать эту версию по ссылке:</translation>
</message>
<message>
<source>Check Update</source>
<translation>Проверить обновление</translation>
</message>
</context>
</TS>
......@@ -1327,5 +1327,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Du kan ladda ner den här versionen via länken:</translation>
</message>
<message>
<source>Check Update</source>
<translation>Kolla Uppdatering</translation>
</message>
</context>
</TS>
......@@ -1269,5 +1269,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>Bu sürümü aşağıdaki bağlantıdan indirebilirsiniz:</translation>
</message>
<message>
<source>Check Update</source>
<translation>Güncellemeyi Kontrol Et</translation>
</message>
</context>
</TS>
......@@ -1266,5 +1266,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Check Update</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1266,5 +1266,9 @@ p, li { white-space: pre-wrap; }
<source>You can download this version using the link:</source>
<translation>您可以从以下链接下载这个版本:</translation>
</message>
<message>
<source>Check Update</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -143,7 +143,7 @@ QString UpdateDialog::get_status()
if (!url.isEmpty()) {
result << "<br>";
result << tr("You can download this version using the link:");
result << "<br><br>";
result << "<br>";
result << link(m_updateChecker->downloadUrl());
}
return result.join("");
......
......@@ -17,13 +17,16 @@
</sizepolicy>
</property>
<property name="windowTitle">
<string notr="true">MystiQ Updates</string>
<string>Check Update</string>
</property>
<property name="windowIcon">
<iconset resource="../images.qrc">
<normaloff>:/actions/icons/check_update.svg</normaloff>:/actions/icons/check_update.svg</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="sizeConstraint">
<enum>QLayout::SetFixedSize</enum>
</property>
<item>
<widget class="QLabel" name="lblStatus">
<property name="text">
......@@ -36,19 +39,6 @@
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="btnReleaseNotes">
<property name="text">
......@@ -77,6 +67,9 @@
</item>
<item>
<widget class="QCheckBox" name="chkCheckUpdateOnStartup">
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="text">
<string>Check for updates on program startup</string>
</property>
......@@ -94,7 +87,7 @@
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Ok</set>
<set>QDialogButtonBox::Close</set>
</property>
</widget>
</item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment