From c639a10dafa4e82ad9087f62c55c18ca7723722a Mon Sep 17 00:00:00 2001 From: Anish Mishra Date: Mon, 9 Jun 2025 11:32:17 +0530 Subject: [PATCH] Disable loading svg from cmdline --- src/autoload/State.gd | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/autoload/State.gd b/src/autoload/State.gd index 2889654..8e24f28 100644 --- a/src/autoload/State.gd +++ b/src/autoload/State.gd @@ -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()