minor StyleCop cleanups

This commit is contained in:
Matthias Mailänder
2013-09-29 17:40:46 +02:00
parent 98e1fe852a
commit ecf9c260b6
3 changed files with 20 additions and 17 deletions

View File

@@ -58,6 +58,7 @@ namespace OpenRA.FileFormats
destStream.Write(sourceStream.ReadAllBytes());
}
}
return true;
}
@@ -71,10 +72,12 @@ namespace OpenRA.FileFormats
onError("Cannot find " + file);
return false;
}
var destFile = Path.GetFileName(file).ToLowerInvariant();
onProgress("Extracting " + destFile);
File.Copy(fromPath, Path.Combine(destPath, destFile), true);
}
return true;
}
@@ -100,6 +103,7 @@ namespace OpenRA.FileFormats
onError("Invalid archive");
return false;
}
return true;
}

View File

@@ -40,7 +40,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
Ui.OpenWindow("MODS_PANEL", new WidgetArgs()
{
{ "onExit", () => { } },
// Close this panel
{ "onSwitch", Ui.CloseWindow },
});
};