diff --git a/CrossMgrHtml/RaceAnimation.html b/CrossMgrHtml/RaceAnimation.html
index 35a8ce89..3980bb21 100644
--- a/CrossMgrHtml/RaceAnimation.html
+++ b/CrossMgrHtml/RaceAnimation.html
@@ -2190,17 +2190,25 @@
// ---------------------------------------------------------------------
function createChild( parent, tag ) {
- var child = document.createElement(tag);
+ let child = document.createElement(tag);
parent.appendChild( child );
return child;
}
function createTextChild( parent, s ) {
- var child = document.createTextNode(s);
+ let child = document.createTextNode(s);
parent.appendChild( child );
return child;
}
+function createMultilineTextChild( parent, s ) {
+ const lines = s.split('\n');
+ for( const line of lines ) {
+ parent.appendChild( document.createTextNode(line) );
+ parent.appendChild( document.createElement('BR') );
+ }
+}
+
// ---------------------------------------------------------------------
var statusSortSeq = { 'Finisher':1, 'PUL':2, 'OTL':6, 'DNF':3, 'DQ':4, 'DNS':5, 'NP':7 };
@@ -2839,7 +2847,7 @@
createTextChild( td = createChild(tr, 'TD'), '');
td.colSpan = 2;
- createTextChild( td = createChild(tr, 'TD'), info.resultNote );
+ createMultilineTextChild( td = createChild(tr, 'TD'), info.resultNote );
td.id = 'idNonNumeric';
td.colSpan = colTotal - 2;
}
diff --git a/Properties.py b/Properties.py
index 9f6c4c95..71f03a16 100644
--- a/Properties.py
+++ b/Properties.py
@@ -1679,6 +1679,8 @@ def SetNewFilename( parent, properties ):
newFName = os.path.join( dir, newBaseName )
mainWin.fileName = newFName
+ wx.CallAfter( mainWin.updateRecentFiles ) # Add to the recent files list.
+ wx.CallAfter( mainWin.updateRaceClock ) # Also updates the window title.
return success
def ChangeProperties( parent ):
diff --git a/RiderDetail.py b/RiderDetail.py
index 963784f9..fabfa5b6 100644
--- a/RiderDetail.py
+++ b/RiderDetail.py
@@ -329,9 +329,9 @@ def __init__( self, parent, id = wx.ID_ANY ):
self.resultNoteName = wx.StaticText( self, label = '{} '.format(_('Result Note')) )
gbs.Add( self.resultNoteName, pos=(row,0), span=(1,1), flag=labelAlign )
- self.resultNote = wx.TextCtrl( self, value='' )
- gbs.Add( self.resultNote, pos=(row,1), span=(1,4), flag=wx.EXPAND )
- row += 1
+ self.resultNote = wx.TextCtrl( self, value='', style=wx.TE_MULTILINE|wx.TE_DONTWRAP )
+ gbs.Add( self.resultNote, pos=(row,1), span=(2,4), flag=wx.EXPAND )
+ row += 2
self.autocorrectLaps = wx.CheckBox( self, label = _('Autocorrect Lap Data') )
self.Bind( wx.EVT_CHECKBOX, self.onAutocorrectLaps, self.autocorrectLaps )