Update the displayed replay filename after renaming.
This commit is contained in:
@@ -465,8 +465,12 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
try
|
||||
{
|
||||
var item = replayState[replay].Item;
|
||||
replay.RenameFile(newFilenameWithoutExtension);
|
||||
replayState[replay].Item.Text = newFilenameWithoutExtension;
|
||||
item.Text = newFilenameWithoutExtension;
|
||||
|
||||
var label = item.Get<LabelWithTooltipWidget>("TITLE");
|
||||
WidgetUtils.TruncateLabelToTooltip(label, item.Text);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user