Results folder currently not opening on MacOS - trying to fix error 50

This commit is contained in:
Jaap Marsman 2022-11-15 16:58:36 +08:00
parent 9d1d38db90
commit a94eaa0419
2 changed files with 9 additions and 3 deletions

View File

@ -70,10 +70,15 @@ func _on_SaveReport_pressed():
# We're not on the web
print("We're not on the web")
var title = str("user://results",global_ints.observed_person_name, global_ints.observation_minutes,".png")
var _error2 = image.save_png("user://results.png")
print(title)
var _error = OS.shell_open(OS.get_user_data_dir())
var _saveimage = image.save_png(title)
var folder = OS.get_user_data_dir()
var _openfolder = OS.shell_open(folder)
$"%SaveReport".visible = true
$"%BackMainMenu".visible = true

View File

@ -80,6 +80,7 @@ __meta__ = {
}
[node name="StartScreen" type="CanvasLayer" parent="."]
visible = false
[node name="InstructionPanel" type="Panel" parent="StartScreen"]
unique_name_in_owner = true