NautilusPlugin: Fix detection of top level sync folder.

This commit is contained in:
Klaas Freitag 2015-11-25 13:32:41 +01:00
parent f1435c86ed
commit 8777982629

View file

@ -169,7 +169,7 @@ class MenuExtension(GObject.GObject, Nautilus.MenuProvider):
if os.path.isdir(filename + "/"):
filename += "/"
# Check if toplevel folder, we need to ignore those as they cannot be shared
if filename.count("/") < (reg_path.count("/")+2):
if filename == reg_path:
topLevelFolder=True
# Only show the menu extension if the file is synced and the sync
# status is ok. Not for ignored files etc.