Projects STRLCPY sub3suite Commits e2ddc881
🤬
  • ■ ■ ■ ■ ■ ■
    sub3suite/src/models/ProjectModel.h
    skipped 164 lines
    165 165   void addEnumEmail(const s3s_struct::Email &email);
    166 166   /* for raw */
    167 167   void addRaw(const s3s_struct::RAW &raw);
     168 + 
     169 +private:
     170 + QByteArray getJson();
    168 171  };
    169 172   
    170 173  #endif // PROJECTMODEL_H
    skipped 1 lines
  • ■ ■ ■ ■ ■ ■
    sub3suite/src/utils/UpdateChecker.cpp
    skipped 39 lines
    40 40   if(serverTime.isValid())
    41 41   {
    42 42   QString url = mainObj["assets"].toArray().at(0).toObject()["browser_download_url"].toString();
    43  - QDateTime build = QDateTime::fromString(CONFIG.value("build_date").toString(), "yyyy-mm-dd");
     43 + QDateTime build = QDateTime::fromString(CONFIG.value("build_date").toString(), "yyyy-MM-dd");
    44 44   
    45 45   if(serverTime.date() > build.date()){
    46  - QString info = QString(tr("New build %1 available!<br>Download <a href=\"%2\">here</a><br><br>You are now on build %3")).arg(serverTime.toString()).arg(url).arg(build.toString());
     46 + QString info = QString(tr("New build %1 available!<br>Download <a href=\"https://github.com/3nock/sub3suite/releases\">here</a><br><br>You are now on build %2")).arg(serverTime.toString()).arg(build.toString());
    47 47   QMessageBox::information(m_parent, tr("New Update!"), info);
    48 48   qDebug() << "New Updates Found!";
    49 49   }else
    50  - qWarning() << "UPDATE CHECK: No New Updates...";
     50 + qDebug() << "UPDATE CHECK: No New Updates...";
    51 51   }else
    52 52   qWarning() << "UPDATE CHECK: Error parsing Server response...";
    53 53   }else
    skipped 15 lines
    69 69   }
    70 70   
    71 71   QString url = mainObj["assets"].toArray().at(0).toObject()["browser_download_url"].toString();
    72  - QDateTime build = QDateTime::fromString(CONFIG.value("build_date").toString(), "yyyy-mm-dd");
     72 + QDateTime build = QDateTime::fromString(CONFIG.value("build_date").toString(), "yyyy-MM-dd");
    73 73   
    74 74   QString info;
    75 75   if(serverTime.date() > build.date())
    76  - info = QString(tr("New build %1 available!<br>Download <a href=\"%2\">here</a><br><br>You are now on build %3")).arg(serverTime.toString()).arg(url).arg(build.toString());
     76 + info = QString(tr("New build %1 available!<br>Download <a href=\"https://github.com/3nock/sub3suite/releases\">here</a><br><br>You are now on build %2")).arg(serverTime.toString()).arg(build.toString());
    77 77   else if(serverTime.date() < build.date())
    78 78   info = QString(tr("You have a development build (%1) of sub3suite!")).arg(build.toString());
    79 79   else
    80 80   info = QString(tr("You have the latest build (%1) of sub3suite!")).arg(build.toString());
    81 81   
    82  - QMessageBox::information(m_parent, tr("Information"), info);
     82 + QMessageBox::information(m_parent, tr("Update Info"), info);
    83 83   }
    84 84   break;
    85 85   default:
    skipped 6 lines
Please wait...
Page is in error, reload to recover