Browse Source

Add new status "connecting"

Alois Mahdal 9 years ago
parent
commit
30675d223a
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      plugins/dropbox.py

+ 6
- 0
plugins/dropbox.py View File

@@ -13,12 +13,14 @@ class DropboxStatus(object):
13 13
     stopped = 3
14 14
     error = 4
15 15
     starting = 5
16
+    connecting = 6
16 17
     unknown = 99
17 18
 
18 19
     symbols = {
19 20
         'ascii': {
20 21
             up_to_date: ".",
21 22
             starting: ">",
23
+            connecting: "^",
22 24
             updating: ":",
23 25
             paused: "\"",
24 26
             stopped: "-",
@@ -28,6 +30,7 @@ class DropboxStatus(object):
28 30
         'utf-8': {
29 31
             up_to_date: "✓",
30 32
             starting: "➤",
33
+            connecting: "▰",
31 34
             updating: "★",
32 35
             paused: "…",
33 36
             stopped: "⬛",
@@ -75,6 +78,9 @@ class DropboxStatus(object):
75 78
             elif "Dropbox isn't running!" in out:
76 79
                 self.status = DropboxStatus.stopped
77 80
                 return
81
+            elif "Connecting..." in out:
82
+                self.status = DropboxStatus.connecting
83
+                return
78 84
             else:
79 85
                 try:
80 86
                     if "Downloading file list" in out: