File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
root/mods-unpacked/GodotModding-UserProfile/content Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ func _on_ButtonNewProfile_pressed() -> void:
85
85
func _on_ButtonDeleteProfile_pressed ():
86
86
var profile_to_delete := ModLoaderStore .current_user_profile
87
87
# Switch to default profile
88
- if not ModLoaderUserProfile .set_profile (ModLoaderConfig . DEFAULT_CONFIG_NAME ):
88
+ if not ModLoaderUserProfile .set_profile (ModLoaderUserProfile . get_profile ( "default" ) ):
89
89
info_text .text = text_profile_select_error
90
90
return
91
91
# Delete the profile
@@ -112,7 +112,8 @@ func _on_ButtonProfileNameSubmit_pressed() -> void:
112
112
113
113
114
114
func _on_ProfileSelect_item_selected (index : int ) -> void :
115
- if not ModLoaderUserProfile .set_profile (profile_select .get_item_text (index )):
115
+ var user_profile := ModLoaderUserProfile .get_profile (profile_select .get_item_text (index ))
116
+ if not ModLoaderUserProfile .set_profile (user_profile ):
116
117
info_text .text = text_profile_select_error
117
118
return
118
119
You can’t perform that action at this time.
0 commit comments