Skip to content

Commit

Permalink
Fix: Nautilus extension broken by v0.11 :(
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Apr 22, 2015
1 parent bba6b99 commit 3127cb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions syncthing_gtk/nautilusplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,15 @@ def cb_syncthing_folder_added(self, daemon, rid, r):
Adds path to list of known repositories and asks Nautilus to
re-read emblem.
"""
path = os.path.expanduser(r["Path"])
path = os.path.expanduser(r["path"])
self.rid_to_path[rid] = path
self.path_to_rid[path.rstrip("/")] = rid
self.repos[path] = STATE_OFFLINE
self._invalidate(path)
# Store repo id in dict of associated devices
self.rid_to_dev[rid] = set()
for d in r['Devices']:
self.rid_to_dev[rid].add(d['DeviceID'])
for d in r['devices']:
self.rid_to_dev[rid].add(d['deviceID'])

def cb_syncthing_con_error(self, *a):
pass
Expand Down

0 comments on commit 3127cb8

Please sign in to comment.