GUI: fixed more bugs with UpdateChecker
This commit is contained in:
parent
b3e0aa647d
commit
61f7b4b38a
|
@ -45,12 +45,12 @@ void UpdateChecker::finishedSlot(QNetworkReply* reply)
|
|||
msg.exec();
|
||||
return;
|
||||
}
|
||||
auto server = QDateTime::fromMSecsSinceEpoch(timestamp);
|
||||
auto server = QDateTime::fromTime_t(timestamp);
|
||||
auto build = QDateTime::fromString(QString(__DATE__).simplified(), "MMM d yyyy");
|
||||
QString info;
|
||||
auto dateFormat = "MMM d yyyy";
|
||||
if(server > build)
|
||||
info = QString("New build %1 available!\nDownload at http://x64dbg.com\n\nYou are now on build %2").arg(server.toString(dateFormat), build.toString(dateFormat));
|
||||
info = QString("New build %1 available!<br>Download <a href=\"http://x64dbg.com\">here</a><br><br>You are now on build %2").arg(server.toString(dateFormat), build.toString(dateFormat));
|
||||
else if(server < build)
|
||||
info = QString("You have a development build (%1) of x64dbg!").arg(build.toString(dateFormat));
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue