NautilusPlugin: Fix detection of the OK status
authorKlaas Freitag <freitag@owncloud.com>
Wed, 25 Nov 2015 13:59:37 +0000 (14:59 +0100)
committerKlaas Freitag <freitag@owncloud.com>
Wed, 25 Nov 2015 14:11:12 +0000 (15:11 +0100)
Consider OK+SHW also as ok, and enable the ownCloud actions.

shell_integration/nautilus/syncstate.py

index 01761ec4ba711f595551de36f77aaf147ca8bbcb..d1d4214012555e6da67cf0de0a5a865609bb53ce 100755 (executable)
@@ -174,7 +174,7 @@ class MenuExtension(GObject.GObject, Nautilus.MenuProvider):
             # Only show the menu extension if the file is synced and the sync
             # status is ok. Not for ignored files etc.
             # ignore top level folders
-            if filename.startswith(reg_path) and topLevelFolder == False and socketConnect.nautilusVFSFile_table[filename]['state'] == 'OK':
+            if filename.startswith(reg_path) and topLevelFolder == False and socketConnect.nautilusVFSFile_table[filename]['state'].startswith('OK'):
                 syncedFile = True
 
         # If it is neither in a synced folder or is a directory