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