Skip to content

Commit c297268

Browse files
committed
Fix error/warning message about non-existant setting
1 parent 75661ba commit c297268

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

addons/dialogic/plugin.gd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ func _enter_tree() -> void:
4141

4242
# Auto-update the singleton path for alpha users
4343
# TODO remove at some point during beta or later
44-
if not "Core" in ProjectSettings.get_setting("autoload/"+PLUGIN_NAME, ""):
45-
remove_autoload_singleton(PLUGIN_NAME)
44+
if not ProjectSettings.has_setting("autoload/"+PLUGIN_NAME) or not "Core" in ProjectSettings.get_setting("autoload/"+PLUGIN_NAME, ""):
45+
if ProjectSettings.has_setting("autoload/"+PLUGIN_NAME):
46+
remove_autoload_singleton(PLUGIN_NAME)
4647
add_autoload_singleton(PLUGIN_NAME, PLUGIN_HANDLER_PATH)
4748

4849

0 commit comments

Comments
 (0)