Ask the user to reconsider quitting if A/V recording (resolves #4017)

This commit is contained in:
YoshiRulz 2024-08-31 12:34:35 +10:00
parent 31b0a29d2d
commit c138e38951
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 13 additions and 0 deletions

View File

@ -783,6 +783,19 @@ namespace BizHawk.Client.EmuHawk
private void CheckMayCloseAndCleanup(object/*?*/ closingSender, CancelEventArgs closingArgs)
{
if (_currAviWriter is not null)
{
if (!this.ModalMessageBox2(
caption: "Really quit?",
icon: EMsgBoxIcon.Question,
text: "You are currently recording A/V.\nChoose \"Yes\" to finalise it and quit EmuHawk.\nChoose \"No\" to cancel shutdown and continue recording."))
{
closingArgs.Cancel = true;
return;
}
StopAv();
}
if (!Tools.AskSave())
{
closingArgs.Cancel = true;