protected override void RenameEnded(RenameEndedArgs args) { if (args.acceptedRename) { var element = treeModel.Find(args.itemID); if (element.name == args.newName) { return; } element.name = args.newName; element.Scopes = args.newName; OnRenameChanged?.Invoke(new CustomPackageManagerScopedRegistry(element.RegistryName, element.URL, args.newName)); Reload(); } }
protected override void RenameEnded(RenameEndedArgs args) { if (args.acceptedRename) { var element = treeModel.Find(args.itemID); if (element.name == args.newName) { return; } element.name = args.newName; element.Version = args.newName; OnRenameChanged?.Invoke(new CustomPackageManagerPackage(element.PackageName, args.newName)); Reload(); } }