Skip to content

Commit c226760

Browse files
committed
Version 1.3 + better version checking (resolves #7)
1 parent 8dd88f5 commit c226760

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aboutdialog.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</rect>
4040
</property>
4141
<property name="text">
42-
<string>Pinecil Firmware Updater v1.2 by gamiee</string>
42+
<string>Pinecil Firmware Updater v1.3 by gamiee</string>
4343
</property>
4444
</widget>
4545
<widget class="QLabel" name="label_2">

mainwindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ MainWindow::MainWindow(QWidget *parent)
111111
, ui(new Ui::MainWindow)
112112
{
113113
ui->setupUi(this);
114-
this->ConsolePrintInfo("<span style='color: blue;'>Pinecil Firmware Updater v1.2</span>");
114+
this->ConsolePrintInfo("<span style='color: blue;'>Pinecil Firmware Updater v1.3</span>");
115115
this->ConsolePrint("Looking for firmwares and latest version...");
116116

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

0 commit comments

Comments
 (0)