mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-23 21:05:44 +03:00
NautilusPlugin: Fix detection of top level sync folder.
This commit is contained in:
parent
f1435c86ed
commit
8777982629
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue