Only export team if data exists

Try-catch already handles it, but let's be safe.
This commit is contained in:
Kaphotics 2016-01-26 18:52:08 -08:00
parent 8232de08a4
commit 9bfeb050c9

View File

@ -467,6 +467,7 @@ private void clickShowdownExportPK6(object sender, EventArgs e)
}
private void clickShowdownExportParty(object sender, EventArgs e)
{
if (SAV.PartyData.Length <= 0) return;
try
{
Clipboard.SetText(
@ -478,6 +479,7 @@ private void clickShowdownExportParty(object sender, EventArgs e)
}
private void clickShowdownExportBattleBox(object sender, EventArgs e)
{
if (SAV.BattleBoxData.Length <= 0) return;
try
{
Clipboard.SetText(