Skip to content

Commit 9f8fef1

Browse files
committed
Ensure that NewName is set on the initial loading
1 parent 0268d47 commit 9f8fef1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Rubberduck.Refactorings/Rename/RenameModel.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ public class RenameModel
1313
public Declaration Target
1414
{
1515
get => _target;
16-
set => _target = value;
16+
set
17+
{
18+
_target = value;
19+
NewName = _target.IdentifierName;
20+
}
1721
}
1822

1923
public QualifiedSelection Selection { get; }

0 commit comments

Comments
 (0)