From a94eaa0419f463a724a2d1ec4a17d94aefabcbb3 Mon Sep 17 00:00:00 2001 From: Jaap Marsman Date: Tue, 15 Nov 2022 16:58:36 +0800 Subject: [PATCH] Results folder currently not opening on MacOS - trying to fix error 50 --- godot/Results.gd | 11 ++++++++--- godot/main_screen.tscn | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/godot/Results.gd b/godot/Results.gd index 95a8682..54e7665 100644 --- a/godot/Results.gd +++ b/godot/Results.gd @@ -70,10 +70,15 @@ func _on_SaveReport_pressed(): # We're not on the web print("We're not on the web") - - var _error2 = image.save_png("user://results.png") + var title = str("user://results",global_ints.observed_person_name, global_ints.observation_minutes,".png") - var _error = OS.shell_open(OS.get_user_data_dir()) + print(title) + + 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 diff --git a/godot/main_screen.tscn b/godot/main_screen.tscn index f45fc91..9d96b73 100644 --- a/godot/main_screen.tscn +++ b/godot/main_screen.tscn @@ -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