Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/autoload/State.gd
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,6 @@ func _enter_tree() -> void:

Configs.active_tab_changed.connect(setup_from_tab)
setup_from_tab.call_deferred() # Let everything load before emitting signals.

var cmdline_args := OS.get_cmdline_args()

# The first argument passed is always a path to the scene file when in-editor.
if (OS.is_debug_build() and not OS.has_feature("template")) and cmdline_args.size() >= 1:
cmdline_args.remove_at(0)

if cmdline_args.size() >= 1:
# Need to wait a frame so the import warnings panel becomes available.
await get_tree().process_frame
FileUtils.apply_svgs_from_paths(cmdline_args)

func setup_from_tab() -> void:
var active_tab := Configs.savedata.get_active_tab()
Expand Down