Improving Update Option

parent 1c9823ae
Pipeline #1783 passed with stage
in 8 minutes and 54 seconds
......@@ -110,7 +110,11 @@ void UpdateChecker::downloadFinished(bool success, QString /*url*/, QString cont
p->release_date = parser.releaseDate();
p->download_url = parser.downloadUrl();
p->download_page = parser.downloadPage();
} else {
} else if (parser.versionId() < VERSION_INTEGER){
// Using dev channel
p->result = UpdateDevChanel;
}
else if (parser.versionId() == VERSION_INTEGER){
// no new version found
p->result = UpdateNotFound;
}
......
......@@ -37,6 +37,7 @@ public:
ConnectionError,
DataError,
UpdateNotFound,
UpdateDevChanel,
UpdateFound
};
......
......@@ -1272,5 +1272,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1289,5 +1289,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation>Zkontrolovat Aktualizace</translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1275,5 +1275,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation>Aktualisierung Überprüfen</translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1273,5 +1273,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation>Chequear Actualizaciones</translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation>La actual versión que estás usando es más reciente que la versión del canal de liberación.&lt;br&gt;Por lo tanto, estás usando el canal de desarrollo.</translation>
</message>
</context>
</TS>
......@@ -1275,5 +1275,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation>Vérifier la mise à jour</translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1331,5 +1331,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation>Comprobe Actualizar</translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1289,5 +1289,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation>Frissítés Ellenőrzése</translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1275,5 +1275,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation>Controlla Aggiornamento</translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1273,5 +1273,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation>アップデートをチェックする</translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1270,5 +1270,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1294,5 +1294,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation>Sprawdź Aktualizację</translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1275,5 +1275,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation>Checar Atualização</translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1272,5 +1272,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1271,5 +1271,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1330,5 +1330,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation>Проверить обновление</translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1331,5 +1331,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation>Kolla Uppdatering</translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1273,5 +1273,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation>Güncellemeyi Kontrol Et</translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1270,5 +1270,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -1270,5 +1270,9 @@ p, li { white-space: pre-wrap; }
<source>Check Update</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The current version you are using is newer than the release channel version.&lt;br&gt;Therefore, you are using the development channel.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
......@@ -296,6 +296,11 @@ p, li { white-space: pre-wrap; }
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Fira Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Version 20.03.18 (2020-03-18)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - Improved application update notification system&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - Added Hungarian language&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - New icons included to the graphical interface&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Version 20.02.18 (2020-02-18)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - Added Chinese language Pack&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - Added Turkish language Pack&lt;/p&gt;
......
......@@ -104,6 +104,9 @@ void UpdateDialog::slotReceivedUpdateResult(int result)
case UpdateChecker::UpdateNotFound:
message = tr("You are already using the latest version of MystiQ.");
break;
case UpdateChecker::UpdateDevChanel:
message = tr("The current version you are using is newer than the release channel version.<br>Therefore, you are using the development channel.");
break;
default:
message = tr("An unknown error has occurred.");
}
......
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