Skip to content
Snippets Groups Projects
Commit 52a0fc9e authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

File sync

parent b6da8a31
No related branches found
No related tags found
No related merge requests found
......@@ -375,7 +375,10 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
// on Error: try to reload with home directory
if ((path !== "/" || path !== "") && this.webDavClient !== null && error.message.search("401") === -1) {
console.log("error in load directory");
this.directoryPath = "";
this.loadDirectory("");
}
else {
this.loading = false;
......
......@@ -132,6 +132,12 @@ export class FileSink extends ScopedElementsMixin(DBPLitElement) {
this.openDialog();
}
break;
case "nextcloudDefaultDir":
//check if default destination is set
if (this.firstOpen) {
this.nextcloudDir = this.nextcloudDefaultDir;
}
break;
}
});
......
......@@ -111,6 +111,12 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) {
// this.closeDialog();
}
break;
case "nextcloudDefaultDir":
//check if default destination is set
if (this.firstOpen) {
this.nextcloudDir = this.nextcloudDefaultDir;
}
break;
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment