projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1435c8
)
NautilusPlugin: Fix detection of top level sync folder.
author
Klaas Freitag
<freitag@owncloud.com>
Wed, 25 Nov 2015 12:32:41 +0000
(13:32 +0100)
committer
Klaas Freitag
<freitag@owncloud.com>
Wed, 25 Nov 2015 14:11:12 +0000
(15:11 +0100)
shell_integration/nautilus/syncstate.py
patch
|
blob
|
history
diff --git
a/shell_integration/nautilus/syncstate.py
b/shell_integration/nautilus/syncstate.py
index 17cb492ae3240adf6b60e27930d489db5d870ee8..01761ec4ba711f595551de36f77aaf147ca8bbcb 100755
(executable)
--- 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.