Commit Graph

1036 Commits

Author SHA1 Message Date
Martchus 96a0119a8d Make braces in Sway config example optional 2021-04-02 00:25:27 +02:00
Martchus fc74d2b1de WIP: Add capture/replay feature for easier debugging 2021-03-31 22:49:59 +02:00
Martchus c51379cdbd Remove obsolete comment 2021-03-31 22:47:10 +02:00
Martchus 3fb621875c Don't assign minimum size if dialog would overflow
This gets a little bit too small and with "Consider window frame size
within centerWidgetAvoidingOverflow()" in qtutilities it shouldn't be
required anymore.
2021-03-24 21:26:15 +01:00
Martchus 832fec0ffe Use more uniform coding style in syncthingicons.cpp 2021-03-24 20:02:07 +01:00
Martchus 18352a6ce1 Show maximize button on settings dialog
So it looks nicer combined with the previous commit.
2021-03-24 15:02:05 +01:00
Martchus 8c4e2168bc Avoid misplaced/clipped dialogs when default dialog size doesn't fit screen
https://github.com/Martchus/syncthingtray/issues/89
2021-03-24 14:40:59 +01:00
Martchus 4903927de9 Improve notes regarding Wayland 2021-03-23 23:03:35 +01:00
Martchus f0de7d204a Fix warning about flags for setFrameStyle() 2021-03-23 15:23:19 +01:00
Martchus f75966aadc Fix warnings 2021-03-20 22:39:40 +01:00
Martchus 6c12f18eaf Update translations 2021-03-06 16:26:23 +01:00
Martchus c84865acc1 Apply clang-format 2021-03-06 16:25:56 +01:00
Martchus 56c488ea6c Update libsyncthing to v1.14.0 2021-03-02 18:03:08 +01:00
Martchus f5b6c506c7 Don't allow to rescan paused directories from Dolphin integration 2021-02-12 21:06:23 +01:00
Martchus 8e51e641ab Improve documentation about plasmoid testing 2021-02-12 20:31:29 +01:00
Martchus 0fc44a9142 Disable pause/resume button within GUI in consistency with official GUI 2021-02-12 20:31:05 +01:00
Martchus a9f570fbc9 Fix clazy warning about detatching Qt container within syncthingfileitemaction.cpp 2021-02-12 20:25:57 +01:00
Martchus 851edeaafc Never consider the own device as paused 2021-02-12 19:44:27 +01:00
Martchus 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
Martchus bdf00a9889 Never consider the own device as paused 2021-02-12 12:51:18 +01:00
Martchus f9df9c46ec Improve build instructions in README.md 2021-02-07 15:33:18 +01:00
Martchus 606a9f053d Update libsyncthing to v1.13.1
It seems that the tags v1.13.0 and v1.13.1 are identical, though. Both tags
point to commit f6fac3e949c882771b4b02ce3f586dd09b7555da.
2021-02-03 18:21:33 +01:00
Martchus dccf567e67 Update translations 2021-02-03 00:02:48 +01:00
Martchus 8f3653b7ca Update libsyncthing to v1.13.0 2021-02-03 00:01:57 +01:00
Martchus 8ec9038b2c Better decouple syncthingwidgets from libsyncthing if libsyncthing is disabled
Before this change syncthingwidgets unconditionally included the header
from libsyncthing so it couldn't be used as stand-alone library if
libsyncthing was disabled.
2021-02-03 00:01:34 +01:00
Martchus 975e86c895 Allow backend libraries to be used from other projects
So far the backend libraries' include paths were relative within this
repository. This means the header files could not be used at their
installed location.

This change replaces them with "<>" includes to fix that problem and adds
a new include directory so building everything at once still works.

With this change it should be easier to actually split some parts into
another repository if this one would become too big.
2021-01-25 19:48:11 +01:00
Martchus b350aaf879 cli: Mark RelevantDir as explicit and ~Application() as override 2021-01-11 18:50:28 +01:00
Martchus 2eaddb0464 cli: Print own device always on top to fix test failures
* Otherwise tests fail when the name of the own device preceeds the other
  device names
* See https://github.com/Martchus/PKGBUILDs/issues/102
2021-01-11 18:49:35 +01:00
Martchus 76407c1f1e Consider process initially stopped so the disconnect notification is correctly suppressed 2021-01-06 17:51:21 +01:00
Martchus ea442ed569 Update libsyncthing to v1.12.1 2021-01-06 17:29:35 +01:00
Martchus 7a5cd3c65f Fix clazy warning about detatching Qt container 2021-01-04 18:52:23 +01:00
Martchus 5c47acef46 Ensure selection of status information doesn't take too much space 2021-01-02 18:02:48 +01:00
Martchus 4c4fc676e6 Update translations 2021-01-01 21:22:15 +01:00
Martchus ed495ec667 Add UI to configure what information should be considered to compute overall status
* See https://github.com/Martchus/syncthingtray/issues/74
* See https://github.com/Martchus/syncthingtray/issues/76
2021-01-01 20:55:18 +01:00
Martchus 76ee21500d Move setting for traffic statistics below settings with combo boxes
It just looks nicer.
2021-01-01 20:50:11 +01:00
Martchus b2ba8c01ea Use header-only target of qtutilities
See the commit message of the corresponding commit in c++utilities
(9fb3bbe179698fb10339d4911b98531b0847cfa1) and also the related commit in
reflective-rapidjson (5c49a438ade5ae4253ae978e3a22cf88bd7cb2e2).
2021-01-01 18:50:46 +01:00
Martchus c656f6fba0 Load/save status compution flags from/to settings 2020-12-31 03:08:08 +01:00
Martchus da911c6350 Refactor overall status compution
* Allow configuring the information to consider for computing the overall
  status via SyncthingStatusComputionFlags
    * Add flag to allow considering the status of remote devices for
      https://github.com/Martchus/syncthingtray/issues/74
    * Show only plain "idle" status when no flags are present for
      https://github.com/Martchus/syncthingtray/issues/76
* Set the default flags to keep the default behavior as-is
2020-12-31 02:48:18 +01:00
Martchus 392eb70b12 Remove uses of SyncthingStatus::OutOfSync which is never actually set 2020-12-31 02:33:20 +01:00
Martchus f7c3ceaece Improve documentation of connector library 2020-12-31 02:30:05 +01:00
Martchus 41e0934cd8 Don't call recalculateStatus() in emitNotifications()
because notifications have nothing to do with the status and it should not
make a difference since the status would not change. The UI is supposed to
rely only on newNotification().
2020-12-31 02:28:11 +01:00
Martchus b8f3b664e0 Use CPP_UTILITIES_MARK_FLAG_ENUM_CLASS for SyncthingHighLevelNotification 2020-12-31 02:17:25 +01:00
Martchus 4445659d2b Simply use isConnected() in StatusInfo::updateConnectedDevices()
instead of explicitely listing all "connected" states.
2020-12-31 02:15:12 +01:00
Martchus c827907ea6 Update SyncthingDirStatus enum to new states from syncthing/lib/model/folderstate.go 2020-12-31 02:13:32 +01:00
Martchus 64686caee6 Avoid detaching Qt container in SyncthingConnection::abortAllRequests()
* See https://doc.qt.io/qt-5/qtglobal.html#qAsConst
* Using std::as_const() instead of qAsConst() to keep support for Qt 5.6
2020-12-31 02:11:35 +01:00
Martchus 1bf58bf38d Apply cmake-format and clang-format 2020-12-17 17:52:02 +01:00
Martchus 75c0f5b74d Remove fractional part of device completion percentage
* For consistency with other percentages
* See https://github.com/Martchus/syncthingtray/issues/81
2020-12-17 12:58:46 +01:00
Martchus db92518e76 Improve download section of README 2020-12-05 21:31:30 +01:00
Martchus 2417746583 Update RPM download section 2020-12-05 21:08:15 +01:00
Martchus 66b6c224dc Update translations 2020-12-01 18:50:16 +01:00