mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Remember video pos after reopen - thx vmb
(+ rtf setting is saved instantly when changed)
This commit is contained in:
parent
b0311e4cb9
commit
c62ac15799
@ -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
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user