add hook for auto archive on playbook
This commit is contained in:
parent
aedc443d3f
commit
e8a26a6b4d
1 changed files with 4 additions and 0 deletions
|
@ -316,6 +316,10 @@ enyo.kind({
|
||||||
blackberry.io.file.saveFile(path,
|
blackberry.io.file.saveFile(path,
|
||||||
blackberry.utils.stringToBlob(data));
|
blackberry.utils.stringToBlob(data));
|
||||||
result = "file saved";
|
result = "file saved";
|
||||||
|
if (path == this.preferences["filepath"] && this.autoarchive == true) {
|
||||||
|
this.autoarchive = false;
|
||||||
|
this.archiveTodo();
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("err: " + e);
|
console.log("err: " + e);
|
||||||
result = "err: " + e;
|
result = "err: " + e;
|
||||||
|
|
Loading…
Reference in a new issue