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