Skip to content

Commit 0b5ee21

Browse files
committed
Corrected false indentation and error
1 parent 53ecec5 commit 0b5ee21

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

addons/mod_loader/api/profile.gd

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -106,25 +106,6 @@ static func rename_profile(old_profile_name: String, new_profile_name: String) -
106106
if not ModLoaderStore.user_profiles.has(old_profile_name):
107107
ModLoaderLog.error("User profile with the name of \"%s\" does not exist." % old_profile_name, LOG_NAME)
108108
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-
=======
128109

129110
# Verify that the new profile_name is not already in use
130111
if ModLoaderStore.user_profiles.has(new_profile_name):
@@ -142,7 +123,6 @@ static func rename_profile(old_profile_name: String, new_profile_name: String) -
142123
# Set it as the current profile
143124
if ModLoaderStore.current_user_profile == ModLoaderStore.user_profiles[old_profile_name]:
144125
ModLoaderStore.current_user_profile[new_profile_name]
145-
>>>>>>> 5e66546 (Corrected false indentation and error)
146126

147127
# Store the new profile in the json file
148128
var is_save_success := _save()

0 commit comments

Comments
 (0)