"Never be asked to save changes" config menu item
This commit is contained in:
parent
32baa013af
commit
ca9c27113f
|
@ -157,6 +157,7 @@ namespace BizHawk.MultiClient
|
|||
public bool WIN32_CONSOLE = true;
|
||||
public bool SkipLagFrame = false;
|
||||
public string MovieExtension = "bkm";
|
||||
public bool SupressAskSave = false;
|
||||
|
||||
// Run-Control settings
|
||||
public int FrameProgressDelayMs = 500; //how long until a frame advance hold turns into a frame progress?
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1178,6 +1178,7 @@ namespace BizHawk.MultiClient
|
|||
acceptBackgroundInputToolStripMenuItem.Checked = Global.Config.AcceptBackgroundInput;
|
||||
singleInstanceModeToolStripMenuItem.Checked = Global.Config.SingleInstanceMode;
|
||||
logWindowAsConsoleToolStripMenuItem.Checked = Global.Config.WIN32_CONSOLE;
|
||||
neverBeAskedToSaveChangesToolStripMenuItem.Checked = Global.Config.SupressAskSave;
|
||||
}
|
||||
|
||||
private void enableToolStripMenuItem_DropDownOpened(object sender, EventArgs e)
|
||||
|
|
|
@ -3176,6 +3176,9 @@ namespace BizHawk.MultiClient
|
|||
FrameBufferResized();
|
||||
}
|
||||
|
||||
|
||||
private void neverBeAskedToSaveChangesToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Global.Config.SupressAskSave ^= true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -389,6 +389,11 @@ namespace BizHawk.MultiClient
|
|||
|
||||
public bool AskSave()
|
||||
{
|
||||
if (Global.Config.SupressAskSave) //User has elected to not be nagged
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (Global.CheatList.Changes)
|
||||
{
|
||||
DialogResult result = MessageBox.Show("Save Changes?", "Cheats", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button3);
|
||||
|
|
|
@ -13,10 +13,8 @@ namespace BizHawk.MultiClient
|
|||
{
|
||||
public partial class LuaConsole : Form
|
||||
{
|
||||
//options - autoload session
|
||||
//TODO: remember column widths
|
||||
//TODO: restore column width on restore default settings
|
||||
//TODO: don't call asksave without looking at the surpress asksave config item
|
||||
|
||||
int defaultWidth; //For saving the default size of the dialog, so the user can restore if desired
|
||||
int defaultHeight;
|
||||
|
@ -1043,6 +1041,11 @@ namespace BizHawk.MultiClient
|
|||
|
||||
public bool AskSave()
|
||||
{
|
||||
if (Global.Config.SupressAskSave) //User has elected to not be nagged
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (changes)
|
||||
{
|
||||
Global.Sound.StopSound();
|
||||
|
|
|
@ -244,6 +244,11 @@ namespace BizHawk.MultiClient
|
|||
|
||||
public bool AskSave()
|
||||
{
|
||||
if (Global.Config.SupressAskSave) //User has elected to not be nagged
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (changes)
|
||||
{
|
||||
Global.Sound.StopSound();
|
||||
|
|
Loading…
Reference in New Issue