From 87779826290d08f28e019f2072394064f6e900b6 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 25 Nov 2015 13:32:41 +0100 Subject: [PATCH] NautilusPlugin: Fix detection of top level sync folder. --- shell_integration/nautilus/syncstate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell_integration/nautilus/syncstate.py b/shell_integration/nautilus/syncstate.py index 17cb492ae..01761ec4b 100755 --- a/shell_integration/nautilus/syncstate.py +++ b/shell_integration/nautilus/syncstate.py @@ -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. -- 2.30.2