mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:17:02 +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) {
|
function doDeleteFile(path) {
|
||||||
console.log("Deleting " + path);
|
console.log("Deleting " + path);
|
||||||
|
|
||||||
Assets.deleteMappings([path], function(err) {
|
Assets.deleteMappings(path, function(err) {
|
||||||
print("Finished deleting path: ", path, err);
|
print("Finished deleting path: ", path, err);
|
||||||
reload();
|
reload();
|
||||||
});
|
});
|
||||||
|
@ -61,8 +61,7 @@ Window {
|
||||||
function doRenameFile(oldPath, newPath) {
|
function doRenameFile(oldPath, newPath) {
|
||||||
console.log("Renaming " + oldPath + " to " + newPath);
|
console.log("Renaming " + oldPath + " to " + newPath);
|
||||||
|
|
||||||
console.log("Renaming " + path + " to " + destinationPath);
|
Assets.renameMapping(oldPath, destinationPath, function(err) {
|
||||||
Assets.renameMapping(path, destinationPath, function(err) {
|
|
||||||
print("Finished rename: ", err);
|
print("Finished rename: ", err);
|
||||||
reload();
|
reload();
|
||||||
});
|
});
|
||||||
|
@ -111,7 +110,6 @@ Window {
|
||||||
}
|
}
|
||||||
function renameFile() {
|
function renameFile() {
|
||||||
var path = scriptsModel.data(treeView.currentIndex, 0x100);
|
var path = scriptsModel.data(treeView.currentIndex, 0x100);
|
||||||
print(path);
|
|
||||||
if (!path) {
|
if (!path) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -133,7 +131,6 @@ Window {
|
||||||
}
|
}
|
||||||
function deleteFile() {
|
function deleteFile() {
|
||||||
var path = scriptsModel.data(treeView.currentIndex, 0x100);
|
var path = scriptsModel.data(treeView.currentIndex, 0x100);
|
||||||
print(treeView.currentIndex, path);
|
|
||||||
if (!path) {
|
if (!path) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue