mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-08-01 06:37:10 +02:00
Show confirmation dialog when attempting to close while a game is loaded (#1582)
This commit is contained in:
parent
e768077fd5
commit
6467ac9cba
1 changed files with 12 additions and 2 deletions
|
@ -918,12 +918,22 @@ namespace Ryujinx.Ui
|
||||||
|
|
||||||
private void Exit_Pressed(object sender, EventArgs args)
|
private void Exit_Pressed(object sender, EventArgs args)
|
||||||
{
|
{
|
||||||
End(_emulationContext);
|
if (!_gameLoaded || GtkDialog.CreateExitDialog())
|
||||||
|
{
|
||||||
|
End(_emulationContext);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Window_Close(object sender, DeleteEventArgs args)
|
private void Window_Close(object sender, DeleteEventArgs args)
|
||||||
{
|
{
|
||||||
End(_emulationContext);
|
if (!_gameLoaded || GtkDialog.CreateExitDialog())
|
||||||
|
{
|
||||||
|
End(_emulationContext);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
args.RetVal = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void StopEmulation_Pressed(object sender, EventArgs args)
|
private void StopEmulation_Pressed(object sender, EventArgs args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue