mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
parent
499bc16b4d
commit
cfa8bbc54a
@ -320,7 +320,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
var favoriteFormats = Configuration.Settings.General.FavoriteSubtitleFormats;
|
||||
var currentTimedTextWithExt = $"Timed Text 1.0 ({currentTimedTextExt})";
|
||||
var newTimedTextWithExt = $"Timed Text 1.0 ({newTimedTextExt})";
|
||||
if (favoriteFormats.Contains(currentTimedTextWithExt))
|
||||
if (favoriteFormats != null && favoriteFormats.Contains(currentTimedTextWithExt))
|
||||
{
|
||||
Configuration.Settings.General.FavoriteSubtitleFormats = favoriteFormats.Replace(currentTimedTextWithExt, newTimedTextWithExt);
|
||||
}
|
||||
|
@ -224,7 +224,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
var favoriteFormats = Configuration.Settings.General.FavoriteSubtitleFormats;
|
||||
var currentTimedTextWithExt = $"Timed Text 1.0 ({currentTimedTextExt})";
|
||||
var newTimedTextWithExt = $"Timed Text 1.0 ({newTimedTextExt})";
|
||||
if (favoriteFormats.Contains(currentTimedTextWithExt))
|
||||
if (favoriteFormats != null && favoriteFormats.Contains(currentTimedTextWithExt))
|
||||
{
|
||||
Configuration.Settings.General.FavoriteSubtitleFormats = favoriteFormats.Replace(currentTimedTextWithExt, newTimedTextWithExt);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user