Skip to content

config error on 4.4.1 and settings dont save #18

@jamosdev

Description

@jamosdev

cool plugin

but there is a bug on 4.4.1

fix it by:

in plugin.gid, at func load_settings():

change the top to:


func load_settings():
	var config = ConfigFile.new()
	var filepath:String=EditorInterface.get_editor_paths().get_config_dir()+"/InspectorTabsPluginSettings.cfg"
	var need2create:bool=false
	# Load data from a file.
	var err = config.load(filepath)
	# If the file didn't load, ignore it.
	if err != OK:
		print("ERROR LOADING SETTINGS FILE ",filepath)
		need2create=true

and add to the bottom:

	if need2create:
		var ret:Error = config.save(filepath)
		if ret != OK:
			printerr("Error ",ret," while saving ",filepath)

that works for me, macos 4.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions