Commit Graph

86 Commits

Author SHA1 Message Date
Martchus 00e83e721d Consider failure to request disk events fatal
Prevents endless polling for disk events in the error
case.
2018-10-10 22:05:48 +02:00
Martchus 87a10c5b33 Allow hiding Plasma applet in certain states
See https://github.com/Martchus/syncthingtray/issues/23
2018-10-10 17:48:48 +02:00
Martchus 73c44591d5 Consume disk events in SyncthingConnection
First step to:
* Show history of most recent file changes
* Notify about file changes
  (see https://github.com/Martchus/syncthingtray/issues/7)
2018-08-04 22:06:31 +02:00
Martchus 45ef2518e8 Apply clang-format 2018-08-04 15:47:43 +02:00
Martchus 39dd98354a Request Syncthing version 2018-07-30 23:00:40 +02:00
Martchus 3549a4cdef Compute overall statistics 2018-07-30 23:00:22 +02:00
Martchus 97e0253902 Fix some warnings, improve coding style 2018-07-22 22:09:59 +02:00
Martchus 77e75f543c Add some more directory properties 2018-07-22 22:09:18 +02:00
Martchus 5a80089cbd Fix condition for outgoing traffic 2018-07-22 21:18:00 +02:00
Martchus db4b032179 Show connected device names in additional status 2018-06-27 17:38:22 +02:00
Martchus f4622379ae Prevent local sync complete notification during scan 2018-05-23 23:18:39 +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 66e58e3971 Fix reading label in readDirRejected() 2018-05-02 00:01:19 +02:00
Martchus 2c27cc27d0 Add signals for new devices and directories 2018-05-01 20:43:15 +02:00
Martchus b61592fbbd Allow editing Syncthing config via JavaScript 2018-04-07 22:01:54 +02:00
Martchus 146d4870e4 Refactor preventing unwanted error messages
* See https://github.com/Martchus/syncthingtray/issues/15
* Not tested yet
2018-04-02 20:35:30 +02:00
Martchus c7ea5974e4 Allow editing config via syncthingctl 2018-04-01 23:01:37 +02:00
Martchus 023279142b Fix "sync complete" notifications during upload
* Distinguish between local and remote FolderCompletion events
* Do not request completion via REST-API, the FolderCompletion
  event covers both - local and remote changes.
2018-03-31 22:07:05 +02:00
Martchus bfd51fcaff Refactor SyncthingConnection::readDirEvent() 2018-03-31 21:19:53 +02:00
Martchus d74738a8a4 Enable event logging for debugging purposes 2018-03-31 19:48:27 +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 914aac6e39 Make bash completion faster by requesting only config 2018-02-19 03:22:47 +01:00
Martchus e6ac3d8599 Update status when config updated 2018-02-18 18:13:06 +01:00
Martchus d20a4aea19 Avoid nesting in SyncthingConnection::continueConnecting() 2018-02-18 18:12:22 +01:00
Martchus c4d63e0e7c Ignore old FolderCompletion events 2018-01-28 18:07:39 +01:00
Martchus 79fe97d952 Refactor notifications
* Use SyncthingNotifier class
* Show 'Sync complete' on FolderCompletion event
* Add extra structure for stats
2018-01-27 23:27:50 +01:00
Martchus b9c87a9bba Show remote progress in cli 2018-01-25 00:03:31 +01:00
Martchus 447928a018 Request device/directory completion 2018-01-24 21:46:18 +01:00
Martchus e6b97e1ecc Clean code for dealing with folder (scan) completion 2017-11-22 00:29:50 +01:00
Martchus 40465a8abb connector: Add method to find dir by path 2017-10-16 19:41:56 +02:00
Martchus ea96c64563 Update number of connected devices correctly
Computing the number of connected devices on overall
connection status changed event is not sufficient.
2017-10-05 00:08:46 +02:00
Martchus 69ffaeb1f3 Apply tidy after updating to clang-format 5.0.0
The behavior of clang-format slightly changed in Clang 5.0.0:
http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html#clang-format
2017-09-17 21:48:15 +02:00
Martchus 144feb426c Prevent rescanning all dirs if no dir ID specified 2017-09-09 21:31:05 +02:00
Martchus 6585117186 Add SyncthingConnection::isLocal() 2017-09-08 17:01:51 +02:00
Martchus fe0688cb27 Only add helpers for mocked SyncthingConnection if required 2017-09-05 00:35:54 +02:00
Martchus 62b94b8460 Show offset of JSON parsing error 2017-09-05 00:23:17 +02:00
Martchus 2747ce76ff Allow compiling connector with mocked SyncthingConnection 2017-09-05 00:22:52 +02:00
Martchus 6b01e42fe4 Fix parsing time from folder summary 2017-08-30 00:01:34 +02:00
Martchus 6c6d7f00d5 Emit status update on each dir status change 2017-08-24 01:52:07 +02:00
Martchus 85ac283455 Consider event time when reading FolderSummary 2017-08-23 23:57:47 +02:00
Martchus 4136e23148 Get current dir status when connecting 2017-08-23 23:56:31 +02:00
Martchus ab2efb7012 Distinguish between requestDirStatistics and requestDirStatus 2017-08-23 23:55:19 +02:00
Martchus 91f7dc38d3 Fix HTTP method for "db/status" 2017-08-23 23:54:07 +02:00
Martchus ca256b62e8 Refactor SyncthingConnection
* Reduce if-cascades
* Add extra method for handling fatal errors
* Read directory summary in extra method
* Allow requesting summary for directory explicitely
2017-08-23 00:22:02 +02: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 3ff4f69180 Remove leftover from testing 2017-08-21 21:46:50 +02:00
Martchus e52a2a6ef6 Improve error handling
Allow viewing request URL and response of internal
errors.
2017-08-20 01:20:47 +02:00
Martchus aca7f61c84 Prevent trying to rescan paused dirs
* Exclude paused dirs when rescanning all dirs to
  prevent errors
* Disable rescanning particular dir via gui if paused
2017-07-16 21:08:38 +02:00