@@ -106,25 +106,6 @@ static func rename_profile(old_profile_name: String, new_profile_name: String) -
106
106
if not ModLoaderStore .user_profiles .has (old_profile_name ):
107
107
ModLoaderLog .error ("User profile with the name of \" %s \" does not exist." % old_profile_name , LOG_NAME )
108
108
return false
109
- <<<<<< < HEAD
110
-
111
- # Verify that the new profile_name is not already in use
112
- if ModLoaderStore .user_profiles .has (new_profile_name ):
113
- ModLoaderLog .error ("User profile with the name of \" %s \" already exists." % new_profile_name , LOG_NAME )
114
- return false
115
-
116
- # Rename user profile
117
- var profile_to_rename = ModLoaderStore .user_profiles [old_profile_name ].duplicate (true )
118
- profile_to_rename .name = new_profile_name
119
-
120
- # Remove old profile entry, replace it with new name entry in the ModLoaderStore
121
- ModLoaderStore .user_profiles .erase (old_profile_name )
122
- ModLoaderStore .user_profiles [new_profile_name ] = profile_to_rename
123
-
124
- # Set it as the current profile
125
- if ModLoaderStore .current_user_profile == old_profile_name :
126
- ModLoaderStore .current_user_profile = new_profile_name
127
- ====== =
128
109
129
110
# Verify that the new profile_name is not already in use
130
111
if ModLoaderStore .user_profiles .has (new_profile_name ):
@@ -142,7 +123,6 @@ static func rename_profile(old_profile_name: String, new_profile_name: String) -
142
123
# Set it as the current profile
143
124
if ModLoaderStore .current_user_profile == ModLoaderStore .user_profiles [old_profile_name ]:
144
125
ModLoaderStore .current_user_profile [new_profile_name ]
145
- >>>>>> > 5e66546 (Corrected false indentation and error )
146
126
147
127
# Store the new profile in the json file
148
128
var is_save_success := _save ()
0 commit comments