Commit Graph

1925 Commits

Author SHA1 Message Date
Martchus 89caa76102 Add option for CLI's `wait-for-idle` to require devs to be connected
See https://github.com/Martchus/syncthingtray/issues/199
2023-08-27 00:09:48 +02:00
Martchus 021cbf2ae5 Mention GNOME under "Supported platforms"
According to https://github.com/NixOS/nixpkgs/issues/199596#issuecomment-1689874588
one can use Syncthing Tray under GNOME with a shell extension.
2023-08-24 20:49:05 +02:00
Martchus 7c83b9cc03 Ignore workingdir for tests being present in checkout 2023-08-19 19:19:16 +02:00
Martchus 968fcb988c Fix finding Syncthing dir by path on Windows
The path needs to be normalized so inconsistent uses of `/` and `\` are not
a problem.
2023-08-19 19:16:16 +02:00
Martchus 652497d06e Allow running CLI tests under Windows 2023-08-19 19:15:09 +02:00
Martchus fd49ef27be Bump patch version 2023-08-19 18:36:25 +02:00
Martchus 27b4ec1189 Update release date 2023-08-09 12:13:23 +02:00
Martchus 5374b8ee52 Update libsyncthing to v1.23.7 2023-08-09 11:46:54 +02:00
Martchus 66a8dda244 Improve test setup
* Improve code for reading environment variables
* Make tests work when the temp directory is not `/tmp` because e.g. `TEMP`
  has been set or tests are executed under Windows
2023-08-02 17:36:26 +02:00
Martchus e4bbe852bd Avoid CMake deprecation warning by bumping version 2023-07-23 21:05:22 +02:00
Martchus 4a109eefb8 Add Plasmoid files not used in current build to excluded files
So these files are still considered for tidying and translations
2023-07-14 02:42:04 +02:00
Martchus 00f444484c Update translations 2023-07-14 02:14:32 +02:00
Martchus e29ed19de4 Improve comments in Plasmoid build script 2023-07-14 02:13:27 +02:00
Martchus c3ea747d46 Fix installation of Plasmoid package 2023-07-13 01:49:11 +02:00
Martchus 912dca1564 Port Plasmoid to Plasma 6
* Split QML part into distinct versions for Plasma 5 and 6 as there are too
  many differences and `#ifdef` is not possible
* Change API usage according to
  https://develop.kde.org/docs/plasma/widget/porting_kf6
* Port "contextualActions" to API documented on
  https://invent.kde.org/frameworks/plasma-framework/-/blob/master/src/plasma/applet.h
* Document testing
* Add FIXMEs/notes for remaining problems; there are likely many more,
  though
2023-07-13 01:01:02 +02:00
Martchus 7e651be694 Fix compilation against Qt < 5.15 for Leap 15.3 builds 2023-07-11 11:55:39 +02:00
Martchus 263a6e4214 Bump patch version 2023-07-11 11:53:04 +02:00
Martchus a8ba961bdc Improve issue templates
* Add note about Antivirus software
* Instruct to delete notices before filing an issue
2023-07-06 11:06:57 +02:00
Martchus 218037a951 Fix compilation without systemd support 2023-07-04 20:01:12 +02:00
Martchus f7b38162dd Update release date 2023-07-04 19:39:29 +02:00
Martchus 8f481b0168 Update translations 2023-07-04 19:38:52 +02:00
Martchus 69568ea6dd Set default transfer timeout to infinity
Apparently the default before introducing the request timeout was not 30000
(which is the value of QNetworkRequest::TransferTimeoutConstant). There was
actually no timeout. So let's restore this behavior for now as the main
intention was to make the timeout configurable but not change any defaults.
2023-07-04 19:33:30 +02:00
Martchus faeefba03f Do not apply transfer timeout to long-polling requests
This leads to "disconnects" from Syncthing otherwise.
2023-07-04 19:26:48 +02:00
Martchus 46d84a0f64 Allow configuring transfer timeout for requests in UI 2023-07-04 19:18:18 +02:00
Martchus 0f5da7fa50 Avoid that shell completion of syncthingctl blocks shell for too long 2023-07-04 19:07:03 +02:00
Martchus 7d6c7de834 Allow setting request timeout in syncthingctl 2023-07-04 19:04:20 +02:00
Martchus 690804be5c Add the request timeout to SyncthingConnectionSettings 2023-07-04 19:01:08 +02:00
Martchus d766bfeb66 Return early when config for shell completion cannot be loaded 2023-07-04 18:49:03 +02:00
Martchus 5a2334cda4 Mark internal function of `cli/application.cpp` static 2023-07-04 18:47:06 +02:00
Martchus ac07982596 Allow setting transfer timeout for network requests of SyncthingConnection 2023-07-04 18:39:14 +02:00
Martchus 7c3204526e Update libsyncthing to v1.23.6 2023-07-04 10:45:38 +02:00
Martchus 5b5b2811da Update translations 2023-07-03 00:56:45 +02:00
Martchus 4effd6045b Dynamically retranslate some aspects of the UI
There are still many places missing but this is a first step.
2023-07-03 00:56:19 +02:00
Martchus 10aafceb68 Update translations 2023-06-30 12:47:30 +02:00
Martchus 4b5bd05221 Remove TODO for unification with `InternalError::isRelevant()`
The code is not similar enough to unify it.
2023-06-30 12:46:01 +02:00
Martchus 13730ab933 Ignore "Forbidden" errors shortly after Syncthing start
Not sure why I'm getting

```
Fehler beim Abfragen der Syncthing-Konfiguration: Error transferring http://127.0.0.1:8384/rest/system/config - server replied: Forbidden
URL der Anfrage: http://127.0.0.1:8384/rest/system/config
```

one one of my setups but this kind of error can likely be ignored shortly
after the start similar to other types of errors.
2023-06-30 12:43:06 +02:00
Martchus 91ce946acb Bump soversion 2023-06-30 12:39:25 +02:00
Martchus c6b03ae0aa Show "Connecting …" status via "Connect/Resume/Pause" button
This makes it more obvious that Syncthing Tray is currently connecting to
Syncthing (instead of just hiding the button completely).
2023-06-20 23:21:21 +02:00
Martchus b8b7986086 Fix build error with Qt < 5.14 2023-06-20 11:09:46 +02:00
Martchus 8b8854d243 Avoid warning about sign conversion
This is actually about the conversion of the `-1` literal in case the
process ID is already `qint64` (e.g. on Windows).
2023-06-10 18:19:28 +02:00
Martchus 6f8931a8ad Improve build section regarding symlinking 2023-06-09 18:13:23 +02:00
Martchus 091ec35580 Stop built-in Syncthing instance synchronously
So `Launcher::terminate()` exits when really everything has terminated and
not just sub processes. It may nevertheless be worthwhile to implement a
timeout.

This may help with
https://github.com/Martchus/syncthingtray/issues/180#issuecomment-1582465960.
2023-06-09 13:13:55 +02:00
Martchus 72f54316a7 Bump patch version 2023-06-09 13:05:31 +02:00
Martchus 2b6b3c9acd Update release date 2023-06-08 15:34:29 +02:00
Martchus 240155b534 Apply clang-format 2023-06-08 15:34:06 +02:00
Martchus 33f457ef7f Update translations 2023-06-08 14:04:40 +02:00
Martchus 6a16333dfd Update statistics icons dynamically when color palette changes 2023-06-08 14:04:16 +02:00
Martchus bca1e1bda5 Avoid warning about unreferenced variable 2023-06-08 12:33:11 +02:00
Martchus dd936b4a81 Workaround lupdate not understanding "enum class" in some cases
Apparently this is still problematic leading to errors like
`Qualifying with unknown namespace/class`. It seems that moving the enum to
a different header file works. The trick to use a macro to define
`enum class` ceased to work on the other hand.

Specifying a function with the namespace like
`void QtGui::FinalWizardPage::showResults()` leads to the same problem and
also needs to be avoided.
2023-06-07 23:14:48 +02:00
Martchus 925ce383f0 Fix condition and code in `supposedAutostartPath()`
The `1 || ` was just a debugging leftover.
2023-06-07 22:08:53 +02:00