mirror of
https://github.com/hobbesjaap/time-sampling-form.git
synced 2024-12-22 07:29:54 +00:00
added condition for running on MacOS
This commit is contained in:
parent
a94eaa0419
commit
edc5499c86
@ -78,7 +78,16 @@ func _on_SaveReport_pressed():
|
||||
|
||||
var folder = OS.get_user_data_dir()
|
||||
|
||||
var _openfolder = OS.shell_open(folder)
|
||||
if OS.get_name() != "OSX":
|
||||
print("We're not on MacOS")
|
||||
var _openfolder = OS.shell_open(folder)
|
||||
|
||||
if OS.get_name() == "OSX":
|
||||
print("We're on MacOS")
|
||||
|
||||
var folder2 = "../../" + folder
|
||||
|
||||
var _openfolder = OS.shell_open(folder2)
|
||||
|
||||
$"%SaveReport".visible = true
|
||||
$"%BackMainMenu".visible = true
|
||||
|
Loading…
Reference in New Issue
Block a user