Commit Graph

25 Commits

Author SHA1 Message Date
f75966aadc Fix warnings 2021-03-20 22:39:40 +01:00
851edeaafc Never consider the own device as paused 2021-02-12 19:44:27 +01:00
1cfd067abd Do not accept "lastSeen" timestamps older or equal to the UNIX epoch
The UNIX epoch seems to be the "null-value" provided by Syncthing's API
when there's no "lastSeen" timestamp, e.g. when it is the own device.
2021-02-12 17:55:38 +01:00
bdf00a9889 Never consider the own device as paused 2021-02-12 12:51:18 +01:00
395a3503d7 Apply clang-format 2020-03-05 19:17:55 +01:00
b8f19b5cc1 Improve code to avoid multiple completion requests 2020-03-02 18:20:48 +01:00
28dc0bb825 Fix duplicated 'eventType == ' 2020-03-02 15:51:14 +01:00
5227a7961e Use queued connection for "other replies"
so the handler is not called while looping through the
list of these replies to abort them. The handler must
not be called in that situation because it mutates the
list.
2020-03-01 23:40:27 +01:00
fb86ee7bf9 Avoid unnecessary completion queries
* Ensure the completion for the same dev/dir is not requested
  twice
* Prevent completion query if (no longer) polling for events
2020-03-01 23:06:02 +01:00
bafdb22c47 Compute the sync state for remote devices
See https://github.com/Martchus/syncthingtray/issues/62
2020-03-01 22:04:30 +01:00
f9100bb0b4 Don't record file changes on dir level by default 2020-01-18 16:57:03 +01:00
6026339c83 Show recent changes 2020-01-18 16:43:13 +01:00
31e7e4e79e Support "Waiting to scan"
This state has been introduced
with https://github.com/syncthing/syncthing/pull/4888
2019-09-27 16:41:24 +02:00
dc7d9b815f Adapt to changes in c++utilities 2019-06-14 19:15:26 +02:00
64473df5ba Adapt to changes in c++utilities 2019-06-10 22:48:26 +02:00
d88df866d2 Adapt to c++utilities v5 2019-05-04 21:05:21 +02:00
e56c950100 Show overall statistics in plasmoid 2019-02-17 23:46:03 +01:00
267cbd7dad Document SyncthingConnection::readDevRejected() 2018-12-26 01:14:19 +01:00
c83df582b6 Fix subtile bugs on reconnect
* Ensure previous long polling requests for events are aborted
  before connecting again
* Ensure results from previous requests are always discarded
  after aborting to reconnect
2018-12-25 02:30:13 +01:00
4a42a3f0c0 Fix and refactor directory error handling
* Rely not only on the FolderErrors event
* Request pull errors when opening the dialog
* Use "pullErrors" from FolderSummary
* Move code for directory error dialog into
  its own class

This should fix that sometimes obsolete errors
were still displayed or actually present errors
missing.
2018-11-03 21:30:17 +01:00
0ef2bf919a Remove duplicated status recalculation 2018-11-02 22:15:16 +01:00
9817be858d Update stateChanged in readDirSummary() 2018-11-02 22:10:18 +01:00
038cb130b7 Don't emit notifications for folder errors 2018-11-02 21:49:24 +01:00
25ae9266a8 Discard obsolete folder errors
* Discard folder errors older than the last "sync" state
* Unfortunately we don't know the the time of the last
  sync from the beginning. To prevent showing obsolete
  errors in this state, discard all errors if the status
  changes to something other than "out-of-syn".
2018-11-02 21:47:27 +01:00
32b2907e67 Split syncthingconnection.cpp
* Move methods for specific requests to its own file
2018-10-28 15:37:25 +01:00