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:
parent
2ae2f5dce2
commit
cf5ee09d5d
File diff suppressed because it is too large
Load Diff
|
@ -237,6 +237,11 @@ namespace BizHawk.Client.EmuHawk
|
||||||
= SaveMovieMenuItem.Enabled
|
= SaveMovieMenuItem.Enabled
|
||||||
= Global.MovieSession.Movie.IsActive;
|
= Global.MovieSession.Movie.IsActive;
|
||||||
|
|
||||||
|
PlayMovieMenuItem.Enabled =
|
||||||
|
RecordMovieMenuItem.Enabled =
|
||||||
|
RecentMovieSubMenu.Enabled =
|
||||||
|
!Global.MovieSession.Movie.IsActive;
|
||||||
|
|
||||||
ReadonlyMenuItem.Checked = Global.MovieSession.ReadOnly;
|
ReadonlyMenuItem.Checked = Global.MovieSession.ReadOnly;
|
||||||
AutomaticallyBackupMoviesMenuItem.Checked = Global.Config.EnableBackupMovies;
|
AutomaticallyBackupMoviesMenuItem.Checked = Global.Config.EnableBackupMovies;
|
||||||
FullMovieLoadstatesMenuItem.Checked = Global.Config.VBAStyleMovieLoadState;
|
FullMovieLoadstatesMenuItem.Checked = Global.Config.VBAStyleMovieLoadState;
|
||||||
|
@ -251,11 +256,11 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void RecentMovieSubMenu_DropDownOpened(object sender, EventArgs e)
|
private void RecentMovieSubMenu_DropDownOpened(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
RecentMenuItem.DropDownItems.Clear();
|
RecentMovieSubMenu.DropDownItems.Clear();
|
||||||
RecentMenuItem.DropDownItems.AddRange(
|
RecentMovieSubMenu.DropDownItems.AddRange(
|
||||||
ToolHelpers.GenerateRecentMenu(Global.Config.RecentMovies, LoadMoviesFromRecent)
|
ToolHelpers.GenerateRecentMenu(Global.Config.RecentMovies, LoadMoviesFromRecent)
|
||||||
);
|
);
|
||||||
RecentMenuItem.DropDownItems.Add(
|
RecentMovieSubMenu.DropDownItems.Add(
|
||||||
ToolHelpers.GenerateAutoLoadItem(Global.Config.RecentMovies)
|
ToolHelpers.GenerateAutoLoadItem(Global.Config.RecentMovies)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,11 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_tas != null)
|
||||||
|
{
|
||||||
|
RefreshDialog();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool AskSave()
|
public bool AskSave()
|
||||||
|
|
Loading…
Reference in New Issue