Skip to content

Commit edb3ccf

Browse files
Mark JessopMark Jessop
authored andcommitted
Fix re-upload button
1 parent 0ef8cd6 commit edb3ccf

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

horusgui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.3.17"
1+
__version__ = "0.3.18"

horusgui/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def read_config(widgets):
7676
global qt_settings, default_config
7777

7878
# This is getting a bit ridiculous, need to re-think this approach.
79-
OK_VERSIONS = [__version__, '0.3.16', '0.3.15', '0.3.14', '0.3.13', '0.3.12', '0.3.11', '0.3.10', '0.3.9', '0.3.8', '0.3.7', '0.3.6', '0.3.5', '0.3.4', '0.3.1', '0.2.1']
79+
OK_VERSIONS = [__version__, '0.3.17', '0.3.16', '0.3.15', '0.3.14', '0.3.13', '0.3.12', '0.3.11', '0.3.10', '0.3.9', '0.3.8', '0.3.7', '0.3.6', '0.3.5', '0.3.4', '0.3.1', '0.2.1']
8080

8181
# Try and read in the version parameter from QSettings
8282
if qt_settings.value("version") not in OK_VERSIONS:

horusgui/gui.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ def set_logging_format():
709709

710710
# Handlers for various checkboxes and push-buttons
711711

712-
def habitat_position_reupload(upload=True):
712+
def habitat_position_reupload(dummy_arg, upload=True):
713713
""" Trigger a re-upload of user position information """
714714
global widgets, sondehub_uploader
715715

@@ -726,13 +726,14 @@ def habitat_position_reupload(upload=True):
726726

727727
if upload:
728728
sondehub_uploader.last_user_position_upload = 0
729+
logging.info("Triggered user position re-upload.")
729730

730731
widgets["habitatUploadPosition"].clicked.connect(habitat_position_reupload)
731732

732733

733734
# Update uploader info as soon as it's edited, to ensure we upload with the latest user callsign
734735
def update_uploader_details():
735-
habitat_position_reupload(False)
736+
habitat_position_reupload(upload=False)
736737

737738
widgets["userCallEntry"].textEdited.connect(update_uploader_details)
738739

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "horusgui"
3-
version = "0.3.17"
3+
version = "0.3.18"
44
description = ""
55
authors = ["Mark Jessop <[email protected]>"]
66

0 commit comments

Comments
 (0)