bugfix: UH-1H frequencies (#62)

This commit is contained in:
Spencer Shepard 2023-09-04 20:35:36 -07:00 committed by GitHub
parent 580064b939
commit d6b33da411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 5 deletions

View File

@ -779,9 +779,7 @@ def checkVersion(splashscreen):
avail_build = v["version"]
avail_version = ver.parse(avail_build)
current_version = ver.parse(version.version_string)
current_maj_min = ver.parse(str(current_version.major) + "." + str(current_version.minor))
avail_maj_min = ver.parse(str(avail_version.major) + "." + str(avail_version.minor))
if avail_maj_min > current_maj_min:
if avail_version > current_version:
logger.warning("New version available. Please update to available version " + v["version"])
msg = QMessageBox()
msg.setWindowTitle(v["title"])
@ -789,7 +787,7 @@ def checkVersion(splashscreen):
msg.setIcon(QMessageBox.Icon.Information)
x = msg.exec_()
else:
logger.info("Version check complete: running the latest version. (micro version ignored)")
logger.info("Version check complete: running the latest version.")
except:
logger.error("Online version check failed.")

View File

@ -190,6 +190,7 @@ class ImportObjects:
ng.units[0].fuel = group.units[0].fuel
ng.units[0].gun = group.units[0].gun
ng.units[0].hardpoint_racks = group.units[0].hardpoint_racks
ng.frequency = group.frequency
new_groups.append(ng)
else:
logger.warn("No pad unit (ie FARP, carrier) found, so can't add helicopters.")

View File

@ -1,7 +1,7 @@
# ROTOROPS VERSION
maj_version = 1
minor_version = 7
patch_version = 0
patch_version = 1
version_url = 'https://dcs-helicopters.com/app-updates/versioncheck.yaml'

Binary file not shown.