Refresh mpv when changing RTL

This commit is contained in:
niksedk 2021-09-18 17:23:47 +02:00
parent 43866db702
commit 78782d3219
3 changed files with 22 additions and 12 deletions

View File

@ -102,6 +102,9 @@ namespace Nikse.SubtitleEdit.Forms
{
numericUpDownFontSize.Value = fontSize.Value;
}
checkBoxRightToLeft.Checked = Configuration.Settings.General.RightToLeftMode &&
LanguageAutoDetect.CouldBeRightToLeftLanguage(_assaSubtitle);
}
else
{

View File

@ -27961,6 +27961,13 @@ namespace Nikse.SubtitleEdit.Forms
{
SubtitleListview1.SelectIndexAndEnsureVisible(focusedItem.Index, true);
}
if (mediaPlayer != null && mediaPlayer.VideoPlayer is LibMpvDynamic libMpv)
{
// refresh mpv text
mediaPlayer.SetSubtitleText("", new Paragraph(), new Subtitle());
UiUtil.ShowSubtitle(_subtitle, mediaPlayer);
}
}
private void joinSubtitlesToolStripMenuItem_Click(object sender, EventArgs e)

View File

@ -538,17 +538,17 @@
<data name="toolStripButtonAssaDraw.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIvSURBVFhH1ZbBThNRFIYnxI0kujCyAIu1sCNsVBKj7+Bj
wIbU1kIfgwVpa6dNNyxIKlg2PoQLTCBxoy6hmgALSFiRphn+c3pPuUwP7dwZIPolX2buTO/9/7ltJvX+
O3zfD2q1mpNmanLq9XoQh1srQQsxS6+jCxIVkG0slUosowXdJIhVoP+0w9ACwwLnAna4h9MBfXOT0EJt
gVMB+pULarhlHy1YBE4Fut0uT9ICNZmjQz2cBJELyNbTFmthqp94ih5OAvcC4ZARMlo4CWIXELzy1TVN
RgsnQawCm7/5NPj6a42P4VBbRgsnQawChL+7GNS+L/H5wflgsMho4SSIXKDRaPAEgcJFQgtPb/KtoUQu
QLRard4kK1wK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grcWQkt1HZ3ceF+CpihihT4VXB8MY1iHy+cKAV+rr99cSe7IOH+/OxrDCfhFHwE
p82Rxg/hzYspm32FcWLG4QSkgDm4BJfhU7gCX5rjM/gE0v1ZSJ+neWPwX8HzrgFVm3xSurKYqwAAAABJ
RU5ErkJggg==
</value>
</data>
<data name="toolStripButtonNetflixQualityCheck.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@ -791,7 +791,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD2
CAAAAk1TRnQBSQFMAgEBAgEAAcwBKwHMASsBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CAAAAk1TRnQBSQFMAgEBAgEAAdQBKwHUASsBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA