Browse Source

Add new status: starting

Alois Mahdal 10 years ago
parent
commit
074450adab
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      plugins/dropbox.py

+ 6
- 0
plugins/dropbox.py View File

@@ -13,11 +13,13 @@ class DropboxStatus(object):
13 13
     paused = 2
14 14
     stopped = 3
15 15
     error = 4
16
+    starting = 5
16 17
     unknown = 99
17 18
 
18 19
     symbols = {
19 20
         'ascii': {
20 21
             up_to_date: ".",
22
+            starting: ">",
21 23
             updating: ":",
22 24
             paused: "\"",
23 25
             stopped: "-",
@@ -26,6 +28,7 @@ class DropboxStatus(object):
26 28
         },
27 29
         'utf-8': {
28 30
             up_to_date: "✓",
31
+            starting: "➤",
29 32
             updating: "★",
30 33
             paused: "…",
31 34
             stopped: "□",
@@ -65,6 +68,9 @@ class DropboxStatus(object):
65 68
             if "Up to date" in out:
66 69
                 self.status = DropboxStatus.up_to_date
67 70
                 return
71
+            elif "Starting..." in out:
72
+                self.status = DropboxStatus.starting
73
+                return
68 74
             elif "Syncing paused" in out:
69 75
                 self.status = DropboxStatus.paused
70 76
                 return