Browse Source

Add new status "connecting"

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