mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-04 14:33:28 +08:00
Profile Merge fix
This commit is contained in:
parent
978f32f9f0
commit
4ceced47e6
@ -803,6 +803,20 @@ class EditProfileWindow(bui.Window):
|
|||||||
bui.getsound('error').play()
|
bui.getsound('error').play()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# Make sure we're not renaming to another existing profile.
|
||||||
|
profiles: dict = bui.app.config.get('Player Profiles', {})
|
||||||
|
if (
|
||||||
|
self._existing_profile != new_name
|
||||||
|
and new_name in profiles.keys()
|
||||||
|
):
|
||||||
|
# NOTE: Implement a new LSTR!
|
||||||
|
bui.screenmessage(bui.Lstr(
|
||||||
|
resource='nameDuplicateText',
|
||||||
|
fallback_value='Cannot rename to existing profile!'
|
||||||
|
))
|
||||||
|
bui.getsound('error').play()
|
||||||
|
return False
|
||||||
|
|
||||||
if transition_out:
|
if transition_out:
|
||||||
bui.getsound('gunCocking').play()
|
bui.getsound('gunCocking').play()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user