Remember video pos after reopen - thx vmb

(+ rtf setting is saved instantly when changed)
This commit is contained in:
Nikolaj Olsson 2016-03-31 05:40:41 +02:00
parent b0311e4cb9
commit c62ac15799
2 changed files with 14 additions and 3 deletions

View File

@ -12,6 +12,8 @@
* Remove bad chars when saving TTML 1.0
* Minor fix for "Toggle dashed" inside italic tag - thx Bryan
* Sometimes Dutch was detected as English
* Fixed bug regarding double line italic in format "iTunes Timed Text" - thx Ajax
* Restore video position after "Reopen" - thx vmb
* + Many minor fixes from ivandrofly and xylographe

View File

@ -3001,9 +3001,17 @@ namespace Nikse.SubtitleEdit.Forms
OpenSubtitle(item.Text, null);
else
OpenSubtitle(rfe.FileName, null, rfe.VideoFileName, rfe.OriginalFileName);
GotoSubPosAndPause();
SetRecentIndices(item.Text);
SubtitleListview1.EndUpdate();
GotoSubPosAndPause();
if (rfe != null && !string.IsNullOrEmpty(rfe.VideoFileName))
{
var p = _subtitle.GetParagraphOrDefault(rfe.FirstSelectedIndex);
if (p != null)
{
mediaPlayer.CurrentPosition = p.StartTime.TotalSeconds;
}
}
}
}
@ -8348,7 +8356,6 @@ namespace Nikse.SubtitleEdit.Forms
}
if (!string.IsNullOrEmpty(_fileName))
Configuration.Settings.RecentFiles.Add(_fileName, FirstVisibleIndex, FirstSelectedIndex, _videoFileName, _subtitleAlternateFileName);
Configuration.Settings.General.RightToLeftMode = toolStripMenuItemRightToLeftMode.Checked;
SaveUndockedPositions();
SaveListViewWidths();
@ -18168,6 +18175,7 @@ namespace Nikse.SubtitleEdit.Forms
SubtitleListview1.RightToLeftLayout = false;
textBoxSource.RightToLeft = RightToLeft.No;
mediaPlayer.TextRightToLeft = RightToLeft.No;
Configuration.Settings.General.RightToLeftMode = false;
}
else
{
@ -18177,6 +18185,7 @@ namespace Nikse.SubtitleEdit.Forms
SubtitleListview1.RightToLeftLayout = true;
textBoxSource.RightToLeft = RightToLeft.Yes;
mediaPlayer.TextRightToLeft = RightToLeft.Yes;
Configuration.Settings.General.RightToLeftMode = true;
}
}
@ -19723,6 +19732,6 @@ namespace Nikse.SubtitleEdit.Forms
{
_lastWaveformMenuCloseTicks = DateTime.Now.Ticks;
}
}
}