- Bumped to version 3.1.0

- Enables Apple M1 Rosetta support
- Fixes Apple Intel and M1 packaging issue(s)
- Update build docs
- Disable donation begging
- Mining: New background gfx for the QML widget
- Mining: fix segfault at wownerod right-click download
- remove (old) OpenPGP code (find a new impl. when needed)
This commit is contained in:
dsc
2022-05-04 02:15:13 +02:00
parent dc3ee66e3b
commit caa8731410
30 changed files with 298 additions and 1269 deletions
+12
View File
@@ -439,6 +439,18 @@ int Utils::maxLength(const QVector<QString> &array) {
return maxLength;
}
unsigned int Utils::countAlphaNum(const QByteArray &line) {
QRegularExpression re("([a-zA-Z0-9])");
QRegularExpressionMatchIterator iterator = re.globalMatch(line);
int count = 0;
while (iterator.hasNext()){
QRegularExpressionMatch match = iterator.next();
count += 1;
}
return count;
}
bool Utils::versionOutdated(const QString &current_version, const QString &newest_version) {
// True when major or minor version changed
auto cver = current_version.split('.');