Remove changesMade
Commit 1b3f0f87
already ignores the flag, so we may as well remove it
entirely to get rid of the build warning.
This commit is contained in:
parent
3a539c977b
commit
17f4411ab5
|
@ -31,7 +31,6 @@ namespace ScriptToolGui
|
||||||
|
|
||||||
// Saving changes
|
// Saving changes
|
||||||
object changeLock = new object();
|
object changeLock = new object();
|
||||||
bool changesMade = false;
|
|
||||||
|
|
||||||
// Strings
|
// Strings
|
||||||
List<string> m12Strings;
|
List<string> m12Strings;
|
||||||
|
@ -511,11 +510,6 @@ namespace ScriptToolGui
|
||||||
|
|
||||||
if (game == Game.M12English)
|
if (game == Game.M12English)
|
||||||
{
|
{
|
||||||
if (oldString != newString)
|
|
||||||
{
|
|
||||||
changesMade = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (insertEndcode)
|
if (insertEndcode)
|
||||||
{
|
{
|
||||||
// Special case -- for M12 English, if the line is modified,
|
// Special case -- for M12 English, if the line is modified,
|
||||||
|
@ -560,19 +554,15 @@ namespace ScriptToolGui
|
||||||
|
|
||||||
lock (changeLock)
|
lock (changeLock)
|
||||||
{
|
{
|
||||||
//if (changesMade)
|
using (StreamWriter sw = File.CreateText(Path.Combine(config.WorkingFolder, "m12-strings-english.txt")))
|
||||||
{
|
{
|
||||||
using (StreamWriter sw = File.CreateText(Path.Combine(config.WorkingFolder, "m12-strings-english.txt")))
|
foreach (string line in m12StringsEnglish)
|
||||||
{
|
{
|
||||||
foreach (string line in m12StringsEnglish)
|
sw.WriteLine(line);
|
||||||
{
|
|
||||||
sw.WriteLine(line);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateStatus(String.Format("Last saved: {0:G}", DateTime.Now));
|
|
||||||
changesMade = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UpdateStatus(String.Format("Last saved: {0:G}", DateTime.Now));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue