Skip to content

Commit

Permalink
[TASK] stignore nautilus: show ignore status also when offline
Browse files Browse the repository at this point in the history
  • Loading branch information
TechupBusiness committed Nov 12, 2019
1 parent 63bb454 commit 78b4636
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Binary file added icons/emblem-syncthing-ignorepartial-offline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions syncthing_gtk/nautilusplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,12 @@ def update_file_info(self, file):
elif self._is_ignoredpartial_path(path):
file.add_emblem("syncthing-ignorepartial")
else:
# Default (i-have-no-idea-what-happened) state
file.add_emblem("syncthing-offline")
# Default (i-have-no-idea-what-happened) state
if not self._is_ignored_path(path):
file.add_emblem("syncthing-offline")
elif self._is_ignoredpartial_path(path):
file.add_emblem("syncthing-ignorepartial-offline")

return NautiluslikeExtension._plugin_module.OperationResult.COMPLETE

### MenuProvider stuff
Expand Down

0 comments on commit 78b4636

Please sign in to comment.