Use new window_title variable to change window's title

Will be used later to get the current window title. Godot doesn't seem to have a built-in way to get the window's title.
This commit is contained in:
OverloadedOrama 2020-02-22 17:21:52 +02:00
parent 52fa460876
commit eab3669eb2
3 changed files with 9 additions and 4 deletions

View file

@ -111,5 +111,5 @@ func _on_ImportSprites_files_selected(paths : PoolStringArray) -> void:
Global.canvas = Global.canvases[Global.canvases.size() - 1]
Global.canvas.visible = true
OS.set_window_title(first_path.get_file() + " (" + tr("imported") + ") - Pixelorama")
Global.window_title = first_path.get_file() + " (" + tr("imported") + ") - Pixelorama"