Disable play and record movie menu items when a movie is active, it isn't too much trouble for the user to stop the current movie first, and there's a lot that goes wron when they pick these with an active movie

This commit is contained in:
adelikat 2014-07-10 20:06:23 +00:00
parent 2ae2f5dce2
commit cf5ee09d5d
3 changed files with 343 additions and 333 deletions

File diff suppressed because it is too large Load Diff

View File

@ -237,6 +237,11 @@ namespace BizHawk.Client.EmuHawk
= SaveMovieMenuItem.Enabled
= Global.MovieSession.Movie.IsActive;
PlayMovieMenuItem.Enabled =
RecordMovieMenuItem.Enabled =
RecentMovieSubMenu.Enabled =
!Global.MovieSession.Movie.IsActive;
ReadonlyMenuItem.Checked = Global.MovieSession.ReadOnly;
AutomaticallyBackupMoviesMenuItem.Checked = Global.Config.EnableBackupMovies;
FullMovieLoadstatesMenuItem.Checked = Global.Config.VBAStyleMovieLoadState;
@ -251,11 +256,11 @@ namespace BizHawk.Client.EmuHawk
private void RecentMovieSubMenu_DropDownOpened(object sender, EventArgs e)
{
RecentMenuItem.DropDownItems.Clear();
RecentMenuItem.DropDownItems.AddRange(
RecentMovieSubMenu.DropDownItems.Clear();
RecentMovieSubMenu.DropDownItems.AddRange(
ToolHelpers.GenerateRecentMenu(Global.Config.RecentMovies, LoadMoviesFromRecent)
);
RecentMenuItem.DropDownItems.Add(
RecentMovieSubMenu.DropDownItems.Add(
ToolHelpers.GenerateAutoLoadItem(Global.Config.RecentMovies)
);
}

View File

@ -33,6 +33,11 @@ namespace BizHawk.Client.EmuHawk
{
return;
}
if (_tas != null)
{
RefreshDialog();
}
}
public bool AskSave()