Disable menu item until subtitle loaded

This commit is contained in:
Martijn van Berkel (Flitskikker) 2024-02-10 00:21:27 +01:00
parent b908b49e65
commit 13dbdc55b2

View File

@ -25259,6 +25259,7 @@ namespace Nikse.SubtitleEdit.Forms
{
toolStripMenuItemOpenContainingFolder.Enabled = !string.IsNullOrEmpty(_fileName) && File.Exists(_fileName);
bool subtitleLoaded = IsSubtitleLoaded;
toolStripMenuItemVerifyCompleteness.Enabled = subtitleLoaded;
toolStripMenuItemStatistics.Enabled = subtitleLoaded;
toolStripMenuItemExport.Enabled = subtitleLoaded;
toolStripMenuItemOpenKeepVideo.Enabled = _videoFileName != null;