diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-07 12:29:46 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-07 12:32:01 +0300 |
commit | 7b484538db8e30b0a20315ffc448b342dd39c67f (patch) | |
tree | 62a105955d9307a732ddc7e1816222df2e4df0ac /SelectModsForm.cs | |
parent | c7fc8c5989cd3ae6bb2bdc93c9978fb53fd55829 (diff) |
Many tiny fixes, rc5
Diffstat (limited to 'SelectModsForm.cs')
-rw-r--r-- | SelectModsForm.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/SelectModsForm.cs b/SelectModsForm.cs index 7b16803e..a900f18b 100644 --- a/SelectModsForm.cs +++ b/SelectModsForm.cs @@ -144,7 +144,7 @@ namespace com.clusterrr.hakchi_gui private void SelectModsForm_DragDrop(object sender, DragEventArgs e)
{
- var files = (string[])e.Data.GetData(DataFormats.FileDrop);
+ var files = (string[])e.Data.GetData(DataFormats.FileDrop);
AddMods(files);
}
@@ -156,7 +156,9 @@ namespace com.clusterrr.hakchi_gui var ext = Path.GetExtension(file).ToLower();
if (ext == ".hmod")
{
- File.Copy(file, Path.Combine(usermodsDirectory, Path.GetFileName(file)), true);
+ var target = Path.Combine(usermodsDirectory, Path.GetFileName(file));
+ if (file != target)
+ File.Copy(file, target, true);
listAddedMods.Add(Path.GetFileNameWithoutExtension(file));
}
else if (ext == ".7z" || ext == ".zip" || ext == ".rar")
|