mirror of
https://github.com/hobbesjaap/wellbeingapp.git
synced 2024-11-08 11:42:59 +00:00
trying out online update notifications
This commit is contained in:
parent
b9a82025e1
commit
b9622d0632
@ -16,7 +16,9 @@ func _on_button_update_check_pressed():
|
||||
$HTTPRequest.request("https://raw.githubusercontent.com/hobbesjaap/wellbeingapp/main/version_stuff.csv")
|
||||
|
||||
|
||||
#func _on_HTTPRequest_request_completed(result, response_code, headers, body):
|
||||
func _on_request_completed(result, response_code, headers, body):
|
||||
func _on_HTTPRequest_request_completed(result, response_code, headers, body):
|
||||
#func _on_request_completed(result, response_code, headers, body):
|
||||
var json = JSON.parse(body.get_string_from_utf8())
|
||||
program_info.web_release_version = json.result
|
||||
if program_info.web_release_version > program_info.release_version:
|
||||
print("There's an update!")
|
||||
|
1
version_info.csv
Normal file
1
version_info.csv
Normal file
@ -0,0 +1 @@
|
||||
1
|
|
@ -1 +0,0 @@
|
||||
2
|
|
Loading…
Reference in New Issue
Block a user