Fix rename mapping

This commit is contained in:
Ryan Huffman 2016-03-09 16:50:37 -08:00
parent fa66c0a521
commit dd52dd69d9

View file

@ -61,7 +61,7 @@ Window {
function doRenameFile(oldPath, newPath) { function doRenameFile(oldPath, newPath) {
console.log("Renaming " + oldPath + " to " + newPath); console.log("Renaming " + oldPath + " to " + newPath);
Assets.renameMapping(oldPath, destinationPath, function(err) { Assets.renameMapping(oldPath, newPath, function(err) {
print("Finished rename: ", err); print("Finished rename: ", err);
reload(); reload();
}); });
@ -121,7 +121,7 @@ Window {
}); });
object.selected.connect(function(destinationPath) { object.selected.connect(function(destinationPath) {
if (fileExists(destinationPath)) { if (fileExists(destinationPath)) {
askForOverride(path, function() { askForOverride(destinationPath, function() {
doRenameFile(path, destinationPath); doRenameFile(path, destinationPath);
}); });
} else { } else {