Skip to content

Commit

Permalink
Version 1.3 + better version checking (resolves #7)
Browse files Browse the repository at this point in the history
  • Loading branch information
gamelaster committed Feb 10, 2021
1 parent 8dd88f5 commit c226760
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aboutdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</rect>
</property>
<property name="text">
<string>Pinecil Firmware Updater v1.2 by gamiee</string>
<string>Pinecil Firmware Updater v1.3 by gamiee</string>
</property>
</widget>
<widget class="QLabel" name="label_2">
Expand Down
4 changes: 2 additions & 2 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ MainWindow::MainWindow(QWidget *parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
this->ConsolePrintInfo("<span style='color: blue;'>Pinecil Firmware Updater v1.2</span>");
this->ConsolePrintInfo("<span style='color: blue;'>Pinecil Firmware Updater v1.3</span>");
this->ConsolePrint("Looking for firmwares and latest version...");

this->networkMgr = new QNetworkAccessManager(this);
Expand All @@ -124,7 +124,7 @@ MainWindow::MainWindow(QWidget *parent)
QJsonObject firmware = firmwareValue.toObject();
ui->firmwareComboBox->addItem(firmware["name"].toString(), firmware["file"].toString());
}
if (json["latest_version"].toString() != "1.2") {
if (json["latest_version"].toString().toDouble() > 1.3) {
QMessageBox msgBox;
msgBox.setText("New version of Pinecil Firmware Updater was found.");
msgBox.setInformativeText("Do you want to download it?");
Expand Down

0 comments on commit c226760

Please sign in to comment.