[gnome-documents/wip/owncloud: 4/6] miners: refresh the ownCloud cache on startup



commit 6782c81a9e85e0bb39be52a6215a586a11270379
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Aug 18 12:56:42 2013 +0200

    miners: refresh the ownCloud cache on startup
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686527

 src/application.js |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 871b246..4911d41 100644
--- a/src/application.js
+++ b/src/application.js
@@ -311,6 +311,15 @@ const Application = new Lang.Class({
             }
         }
 
+        if (sourceManager.hasProviderType('owncloud')) {
+            try {
+                // startup a refresh of the owncloud cache
+                this._refreshMinerNow(this.owncloudMiner);
+            } catch (e) {
+                log('Unable to start Owncloud miner: ' + e.message);
+            }
+        }
+
         if (sourceManager.hasProviderType('windows_live')) {
             try {
                 // startup a refresh of the skydrive cache
@@ -466,6 +475,7 @@ const Application = new Lang.Class({
         ];
 
         this.gdataMiner = new Miners.GDataMiner();
+        this.owncloudMiner = new Miners.OwncloudMiner();
         this.zpjMiner = new Miners.ZpjMiner();
 
         this._initActions();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]