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