mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
Cleanup AssetServer qml
This commit is contained in:
parent
0d2ae4f3a4
commit
232bfc9061
1 changed files with 2 additions and 5 deletions
|
@ -47,7 +47,7 @@ Window {
|
|||
function doDeleteFile(path) {
|
||||
console.log("Deleting " + path);
|
||||
|
||||
Assets.deleteMappings([path], function(err) {
|
||||
Assets.deleteMappings(path, function(err) {
|
||||
print("Finished deleting path: ", path, err);
|
||||
reload();
|
||||
});
|
||||
|
@ -61,8 +61,7 @@ Window {
|
|||
function doRenameFile(oldPath, newPath) {
|
||||
console.log("Renaming " + oldPath + " to " + newPath);
|
||||
|
||||
console.log("Renaming " + path + " to " + destinationPath);
|
||||
Assets.renameMapping(path, destinationPath, function(err) {
|
||||
Assets.renameMapping(oldPath, destinationPath, function(err) {
|
||||
print("Finished rename: ", err);
|
||||
reload();
|
||||
});
|
||||
|
@ -111,7 +110,6 @@ Window {
|
|||
}
|
||||
function renameFile() {
|
||||
var path = scriptsModel.data(treeView.currentIndex, 0x100);
|
||||
print(path);
|
||||
if (!path) {
|
||||
return;
|
||||
}
|
||||
|
@ -133,7 +131,6 @@ Window {
|
|||
}
|
||||
function deleteFile() {
|
||||
var path = scriptsModel.data(treeView.currentIndex, 0x100);
|
||||
print(treeView.currentIndex, path);
|
||||
if (!path) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue