We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b11ee4 commit 1288461Copy full SHA for 1288461
app/src/main/java/io/github/sds100/keymapper/backup/BackupManager.kt
@@ -476,7 +476,8 @@ class BackupManagerImpl(
476
modifiedGroup = RepositoryUtils.saveUniqueName(
477
modifiedGroup,
478
saveBlock = { renamedGroup ->
479
- if (siblings.any { sibling -> sibling.name == renamedGroup.name }) {
+ // Do not rename the group with a (1) if it is the same UID. Just overwrite the name.
480
+ if (siblings.any { sibling -> sibling.uid != renamedGroup.uid && sibling.name == renamedGroup.name }) {
481
throw IllegalStateException("Non unique group name")
482
}
483
},
0 commit comments