ソースを参照

Add new status "connecting"

Alois Mahdal 10 年 前
コミット
30675d223a
共有1 個のファイルを変更した6 個の追加0 個の削除を含む
  1. 6
    0
      plugins/dropbox.py

+ 6
- 0
plugins/dropbox.py ファイルの表示

@@ -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: