mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:36:30 +02:00
Fix rename mapping
This commit is contained in:
parent
fa66c0a521
commit
dd52dd69d9
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue