Skip to content

Commit 14f0c72

Browse files
Initialize author data on the very first project when Pixelorama launches
1 parent bd0b38d commit 14f0c72

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

Translations/Translations.pot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,6 +2005,10 @@ msgstr ""
20052005
msgid "Company/Studio:"
20062006
msgstr ""
20072007

2008+
#. Found in the project properties. It is a header of the information about the author of the project who last saved the project.
2009+
msgid "Last saved by"
2010+
msgstr ""
2011+
20082012
#. Found in the Preferences, under Extensions.
20092013
msgid "Add Extension"
20102014
msgstr ""

src/Autoload/Global.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ func _ready() -> void:
853853
set(pref, value)
854854
if OS.is_sandboxed() or OS.has_feature("mobile"):
855855
Global.use_native_file_dialogs = true
856+
current_project.initialize_author_data()
856857
await get_tree().process_frame
857858
project_switched.emit()
858859
canvas.color_index.enabled = show_pixel_indices # Initialize color index preview

src/UI/Dialogs/ProjectProperties.gd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const REMOVE_TEXTURE := preload("res://assets/graphics/misc/close.png")
99
var _selected_tileset: TileSetCustom
1010
var _current_tileset_name_filter: String
1111

12+
@onready var list := $HSplitContainer/List as ItemList
1213
@onready var general_container := %GeneralContainer as VBoxContainer
1314
@onready var size_value_label := %SizeValueLabel as Label
1415
@onready var color_mode_value_label := %ColorModeValueLabel as Label
@@ -36,6 +37,7 @@ var export_tileset_confirmation_dialog: ConfirmationDialog = $ExportTilesetConfi
3637

3738

3839
func _ready() -> void:
40+
list.select(0)
3941
export_tileset_file_dialog.use_native_dialog = Global.use_native_file_dialogs
4042

4143

0 commit comments

Comments
 (0)