1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 12:33:14 +00:00

Always ensure that directory_path is "user://" on HTML5

This commit is contained in:
OverloadedOrama 2020-06-30 22:36:03 +03:00
parent 7e3436d3ba
commit 0bc26bbbae

View file

@ -77,11 +77,6 @@ func _ready() -> void:
$VBoxContainer/AnimationOptions/AnimationType.selected = AnimationType.MULTIPLE_FILES
$VBoxContainer/AnimationOptions/AnimationType.disabled = true
# If we're on HTML5, don't let the user change the directory path
if OS.get_name() == "HTML5":
$VBoxContainer/Path.visible = false
directory_path = "user://"
func show_tab() -> void:
$VBoxContainer/FrameOptions.hide()
@ -503,6 +498,11 @@ func _on_ExportDialog_about_to_show() -> void:
if was_exported:
restore_previous_export_settings()
# If we're on HTML5, don't let the user change the directory path
if OS.get_name() == "HTML5":
$VBoxContainer/Path.visible = false
directory_path = "user://"
if directory_path.empty():
directory_path = OS.get_system_dir(OS.SYSTEM_DIR_DESKTOP)