mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-14 15:25:17 +00:00
Disable "open last project" option in HTML5
This commit is contained in:
parent
8ec3256ce6
commit
ebf19c7bfe
3 changed files with 8 additions and 2 deletions
|
@ -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").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
|
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:
|
func _on_ArtCredits_pressed() -> void:
|
||||||
|
|
|
@ -34,6 +34,9 @@ func setup_file_menu() -> void:
|
||||||
|
|
||||||
file_menu.connect("id_pressed", self, "file_menu_id_pressed")
|
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:
|
func setup_edit_menu() -> void:
|
||||||
var edit_menu_items := {
|
var edit_menu_items := {
|
||||||
|
|
Loading…
Add table
Reference in a new issue