Allow save selected lines as subtitle with only 1 row selected - thx Pierrounator :)

Fix #8796
This commit is contained in:
Nikolaj Olsson 2024-09-09 18:46:59 +02:00
parent d97cefd57b
commit 17489f32dd

View File

@ -9693,7 +9693,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
bool noNetWorkSession = _networkSession == null; bool noNetWorkSession = _networkSession == null;
toolStripMenuItemSaveSelectedLines.Visible = false; toolStripMenuItemSaveSelectedLines.Visible = true;
toolStripMenuItemInsertBefore.Visible = true; toolStripMenuItemInsertBefore.Visible = true;
toolStripMenuItemInsertAfter.Visible = true; toolStripMenuItemInsertAfter.Visible = true;
toolStripMenuItemInsertSubtitle.Visible = noNetWorkSession; toolStripMenuItemInsertSubtitle.Visible = noNetWorkSession;
@ -9735,7 +9735,6 @@ namespace Nikse.SubtitleEdit.Forms
} }
else if (SubtitleListview1.SelectedItems.Count >= 2) else if (SubtitleListview1.SelectedItems.Count >= 2)
{ {
toolStripMenuItemSaveSelectedLines.Visible = true;
toolStripMenuItemInsertBefore.Visible = false; toolStripMenuItemInsertBefore.Visible = false;
toolStripMenuItemInsertAfter.Visible = false; toolStripMenuItemInsertAfter.Visible = false;
toolStripMenuItemInsertSubtitle.Visible = false; toolStripMenuItemInsertSubtitle.Visible = false;