Ram Watch - Hook up AskSave to appropriate functions
This commit is contained in:
parent
ff7271c2e2
commit
52f968e379
|
@ -69,6 +69,11 @@ namespace BizHawk.MultiClient
|
|||
}
|
||||
|
||||
public void LoadWatchFromRecent(string file)
|
||||
{
|
||||
bool z = true;
|
||||
if (changes) z = AskSave();
|
||||
|
||||
if (z)
|
||||
{
|
||||
bool r = LoadWatchFile(file, false);
|
||||
if (!r)
|
||||
|
@ -80,13 +85,14 @@ namespace BizHawk.MultiClient
|
|||
DisplayWatchList();
|
||||
changes = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void NewWatchList()
|
||||
{
|
||||
bool result = true;
|
||||
if (changes) result = AskSave();
|
||||
|
||||
if (AskSave() == true)
|
||||
if (result == true)
|
||||
{
|
||||
watchList.Clear();
|
||||
DisplayWatchList();
|
||||
|
@ -293,7 +299,6 @@ namespace BizHawk.MultiClient
|
|||
private void newListToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
NewWatchList();
|
||||
//TODO: prompt to save changes if necessary;
|
||||
}
|
||||
|
||||
private FileInfo GetFileFromUser()
|
||||
|
@ -317,9 +322,16 @@ namespace BizHawk.MultiClient
|
|||
{
|
||||
var file = GetFileFromUser();
|
||||
if (file != null)
|
||||
{
|
||||
bool r = true;
|
||||
if (changes) r = AskSave();
|
||||
if (r)
|
||||
{
|
||||
LoadWatchFile(file.FullName, false);
|
||||
DisplayWatchList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue