Commit Graph

29 Commits

Author SHA1 Message Date
Martchus 1acfb8c896 Consider directories still out-of-sync if there are pull errors
Syncthing can report an "idle" status despite pull errors. This still means
the directory is out-of-sync. With this change the out-of-sync status is
only cleared when reading a "FolderSummary" event without pull errors (or
temporarily if the directory is e.g. scanning).
2021-07-01 17:40:23 +02:00
Martchus c827907ea6 Update SyncthingDirStatus enum to new states from syncthing/lib/model/folderstate.go 2020-12-31 02:13:32 +01:00
Martchus 3b49e9e312 Support Qt 6 (commit 174154b) 2020-09-04 01:09:18 +02:00
Martchus 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
Martchus 6243a4c2fd Prepare for "Prepare to Sync"
See https://github.com/syncthing/syncthing/pull/6028
2019-09-27 16:32:54 +02:00
Martchus 6724dfa89a Handle new/unknown dir status better
* Show the raw directory status from the Syncthing API if
  it is an unknown (maybe newly introduced) status value.
* Note that the same does not apply to the device status
  because the device status is only deduced from other
  information.
2019-09-21 16:28:08 +02:00
Martchus 64473df5ba Adapt to changes in c++utilities 2019-06-10 22:48:26 +02:00
Martchus d88df866d2 Adapt to c++utilities v5 2019-05-04 21:05:21 +02:00
Martchus 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
Martchus 0ef2bf919a Remove duplicated status recalculation 2018-11-02 22:15:16 +01:00
Martchus 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
Martchus 3549a4cdef Compute overall statistics 2018-07-30 23:00:22 +02:00
Martchus ad3c8b5240 Don't meld 'unshared' into the status
Just deal with it like with the paused flag. This will
hopefully solve the issue that dirs are wrongly shown as
unshared till the next status update.
2018-07-22 22:09:18 +02:00
Martchus 44c0c44475 Improve coding style 2018-05-12 23:09:14 +02:00
Martchus 2fcc94f567 Handle new folder types
See https://github.com/syncthing/syncthing/pull/4942
2018-05-12 23:08:57 +02:00
Martchus 6828e96b53 Improve sync complete notifications
* Also consider remote updates
* Still massive notifications when uploading
  about local folder completed
2018-03-29 00:38:21 +02:00
Martchus b9c87a9bba Show remote progress in cli 2018-01-25 00:03:31 +01:00
Martchus e6b97e1ecc Clean code for dealing with folder (scan) completion 2017-11-22 00:29:50 +01:00
Martchus be6d0cbf5d Don't show own dev in shared devs of dir 2017-08-22 20:44:49 +02:00
Martchus 9b45c49b97 Show names for the devs a dir is shared with
(previously only the IDs were shown)
2017-08-22 19:45:07 +02:00
Martchus c4ccda93c9 Show global directory errors messages
Previously, only error messages for failed
items have been shown.
2017-07-14 20:14:15 +02:00
Martchus 732a5fdd8d Apply clang-format 2017-05-01 03:34:43 +02:00
Martchus 1168e31f55 cli: Add shortcut for current working directory
syncthingctl pwd status/rescan/resume/pause
2017-03-29 23:17:53 +02:00
Marius Kittler aa5a057aab Fix 'no return' error when building rpm package 2017-03-14 12:39:46 +01:00
Martchus fc13a8f146 Read paused state of directories 2017-02-20 21:00:18 +01:00
Martchus eab769b654 Move status strings to connector backend 2017-02-20 18:42:27 +01:00
Martchus ad5e724f44 Add SyncthingDirStatus::Unshared 2016-11-01 16:59:58 +01:00
Martchus 9b92b72bfd Improve handling folder errors 2016-10-05 22:33:10 +02:00
Martchus dd8e443c15 Move SyncthingDev and SyncthingDir to extra files 2016-10-04 23:55:20 +02:00