mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-11 01:15:17 -05:00
Fix drag&drop save file
Missed a 'return', the logic afterwards handles loading a PKM (which we know the file is NOT). Thanks @Favna Previous two commits & this one resolve #127
This commit is contained in:
@@ -4195,7 +4195,7 @@ private void pbBoxSlot_DragDrop(object sender, DragEventArgs e)
|
||||
return;
|
||||
string file = files[0];
|
||||
if (!PKX.getIsPKM(new FileInfo(file).Length))
|
||||
openQuick(file);
|
||||
{ openQuick(file); return; }
|
||||
|
||||
byte[] data = File.ReadAllBytes(file);
|
||||
PKM temp = PKMConverter.getPKMfromBytes(data);
|
||||
|
||||
Reference in New Issue
Block a user