1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-03-12 22:35:18 +00:00

Fix macOS shortcuts

This commit is contained in:
Manolis Papadeas 2022-03-22 01:48:14 +02:00
parent 9648b48a96
commit 8624ed6da8

View file

@ -11,14 +11,16 @@ onready var scroll_container := ui.find_node("ColorAndToolOptions/ScrollContaine
onready var quit_dialog: ConfirmationDialog = find_node("QuitDialog")
func _init() -> void:
if OS.get_name() == "OSX":
_use_osx_shortcuts()
func _ready() -> void:
randomize()
get_tree().set_auto_accept_quit(false)
_setup_application_window_size()
if OS.get_name() == "OSX":
_use_osx_shortcuts()
Global.window_title = tr("untitled") + " - Pixelorama " + Global.current_version
Global.current_project.layers[0].name = tr("Layer") + " 0"