1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-03-13 23:05:20 +00:00

Disable "open last project" option in HTML5

This commit is contained in:
OverloadedOrama 2020-07-15 18:36:46 +03:00
parent 8ec3256ce6
commit ebf19c7bfe
3 changed files with 8 additions and 2 deletions

View file

@ -26,6 +26,9 @@ func _on_SplashDialog_about_to_show() -> void:
get_stylebox("panel", "WindowDialog").bg_color = Global.control.theme.get_stylebox("panel", "WindowDialog").bg_color
get_stylebox("panel", "WindowDialog").border_color = Global.control.theme.get_stylebox("panel", "WindowDialog").border_color
if OS.get_name() == "HTML5":
$Contents/ButtonsPatronsLogos/Buttons/OpenLastBtn.visible = false
func _on_ArtCredits_pressed() -> void:

View file

@ -34,6 +34,9 @@ func setup_file_menu() -> void:
file_menu.connect("id_pressed", self, "file_menu_id_pressed")
if OS.get_name() == "HTML5":
file_menu.set_item_disabled(2, true)
func setup_edit_menu() -> void:
var edit_menu_items := {