Martchus / syncthingtray

Tray application and Dolphin/Plasma integration for Syncthing
https://martchus.github.io/syncthingtray/
Other
1.6k stars 43 forks source link

Add option to ignore folder "out-of-sync" errors #141

Closed tomasz1986 closed 2 years ago

tomasz1986 commented 2 years ago

Relevant components

Is your feature request specific to a certain platform/environment? Please specify. No.

Is your feature request related to a problem? Please describe. This is related to a question that I asked on the forum last year at https://forum.syncthing.net/t/yet-another-syncthing-tray/8502/144?u=tomasz86. To reiterate, the problem is that I often sync folders that contain software data, and that data is often locked by the software in Windows, meaning that Syncthing can't access it, resulting in the folder being almost always in an "out-of-sync" state. The files are still synced from time to time as they are released by the software, but most of the time, they remain inaccessible.

Because of the above, SyncthingTray almost always displays a black exclamation mark next to the Syncthing icon, which I don't really need, as I already know that some of the folders are in this constant "out-of-sync" state.

Describe the solution you'd like I'd like to be able to disable the error icon, at least when it comes to the "out-of-sync" errors, as they are quite meaningless in my case.

Describe alternatives you've considered I don't think anything can be done to work around the problem at the moment.

Additional context It'd be nice to be able to disable "out-of-sync" errors caused by files being inaccessible specifically, i.e. filter errors by type, but if that's impossible or too complicated, then at least an option to disable all such errors would be very nice.

Martchus commented 2 years ago

I suppose I have actually experience the same problem under Windows. I suppose it would be most worth-while to be able to configure it on folder-level. However, for the sake of simplicity I would start adding it to the connection settings first (which already have a configuration for what to include for the overall state).

tomasz1986 commented 2 years ago

Thank you very much. Even if it's only a global setting initially, it would still be very welcome 🙂.

Martchus commented 2 years ago

Implemented as connection-specific setting by https://github.com/Martchus/syncthingtray/commit/4b174eae20017f21e9c0add049b2754cb2dc4413. Introducing folder-specific settings would be more work and is perhaps also a little bit problematic (because folders "come and go" from Syncthing Tray's frontend-perspective and have already a configuration stored on backend-level). So I'm resolving this issue with just the connection-specific setting. (A new issue to have folder-specific settings for computing the overall status could be created but I'm not sure whether it is worth the effort.)