Commit Graph

2011 Commits

Author SHA1 Message Date
Martchus f69c8e604a Fix problem with ignore pattern matching when double asterisks is used 2024-06-26 00:25:09 +02:00
Martchus f0eaf6e230 Fix rendering status icons in file browser under Windows 2024-06-23 22:30:14 +02:00
Martchus 3a9a422582 Don't restart auto-reconnect timer if it is already running 2024-06-22 23:02:04 +02:00
Martchus 96741945f3 Fix file browser getting stuck in endless loop on empty directories 2024-06-22 22:36:51 +02:00
Martchus 8caf7124fd Cache status icons in file model 2024-06-22 22:32:38 +02:00
Martchus 19a621a357 Fix typos, improve comments 2024-06-22 22:12:48 +02:00
Martchus 4bb23c84c3 Fix lookup of local items in filesystem model so it works on all levels
The local lookup needs to be done using the same depth as the database
lookup; otherwise not all levels are covered.
2024-06-22 21:59:52 +02:00
Martchus 5084a9a59e Apply clang-format 2024-06-21 23:07:32 +02:00
Martchus a2ab89f6b7 Process exit/GUI-address log messages in actual order they are logged
This might help with https://github.com/Martchus/syncthingtray/issues/236.
2024-06-21 23:07:17 +02:00
Martchus 80e64c16e6 Update re-connect interval displayed as part of the status
The re-connect interval is displayed as part of the status by `StatusInfo`
and the connection options page when the status is disconnected. This
change simply emits the `statusChanged()` signal to ensure the displayed
re-connect interval is updated when it changes.
2024-06-21 22:59:32 +02:00
Martchus 65642bfef0 Update translations 2024-06-21 00:24:05 +02:00
Martchus cf8408f188 Avoid redundant code to check whether connection config is sufficient 2024-06-21 00:11:21 +02:00
Martchus 94fc0fe432 Postpone connecting until pending requests have finished
Otherwise a handler for a pending connection from before the call to
`connect()` might be handled after the call to `connect()` and set the
connection back to the disconnected state. This is already done in
`reconnect()`. If `connect()` is postponed and then `reconnect()` is
invoked as well then `reconnect()` will win.
2024-06-21 00:04:29 +02:00
Martchus cdd6d411e8 Show "connecting" status also in connection settings 2024-06-20 23:46:48 +02:00
Martchus 5b5aeaa9ab Show current re-connect interval in connection settings 2024-06-20 23:08:41 +02:00
Martchus 7a47bc3e4f Fix build error under Fedora 38 with 6.4.3
This will hopefully fix:

```
[   56s] /home/abuild/rpmbuild/BUILD/syncthingtray-1718839812.fa5a7b5/redhat-linux-build/syncthingmodel/syncthingmodel-qt6_autogen/EWIEGA46WW/moc_syncthingfilemodel.cpp:177:5:   required from here
[   56s] /usr/include/qt6/QtCore/qmetatype.h:842:23: error: invalid application of 'sizeof' to incomplete type 'QAction'
[   56s]   842 |         static_assert(sizeof(T), "Type argument of Q_PROPERTY or Q_DECLARE_METATYPE(T*) must be fully defined");
```
2024-06-20 14:30:02 +02:00
Martchus fa5a7b5c64 Allow restarting Syncthing when the built-in Syncthing library is used 2024-06-20 01:30:12 +02:00
Martchus 8f78d14215 Fix re-connect when process status is considered and Syncthing restarted
When Syncthing restarts itself, its main process is not terminating (as its
main process is just a monitoring process). The "Consider process status …"
feature was relying on the process being stopped and started again as
trigger for trying to re-connect, though. To make it also work when
Syncthing restarts itself, this change checks the log for an exiting
message of the monitoring process and considers the process running again
when the GUI address is logged again.

This fixes https://github.com/Martchus/syncthingtray/issues/236.

Notifications are not (yet) suppressed. (Not sure how easy it is and how
much sense it makes.)
2024-06-20 01:22:45 +02:00
Martchus ce92ccf677 Avoid warning about missing `emit` when emitting `aboutToClose()` 2024-06-20 01:10:34 +02:00
Martchus dcba030e5d Consider stroke width and render size when using palette-based icon 2024-06-19 21:23:17 +02:00
Martchus f4641f23b5 Fix setting palette of icon manager 2024-06-18 19:30:11 +02:00
Martchus dbb9cc40e9 Update translations 2024-06-18 19:19:59 +02:00
Martchus 30b1edbfb1 Use actual foreground color in theme-aware preset 2024-06-18 19:19:43 +02:00
Martchus a33271c293 Update translations 2024-06-17 23:05:20 +02:00
Martchus 250f4bf97d Add option to configure presets with transparent background depending on palette
Implements https://github.com/Martchus/syncthingtray/issues/270
2024-06-17 22:37:34 +02:00
Martchus e67143eb96 Avoid deprecation warning with Qt 6.8 2024-06-15 00:13:39 +02:00
Martchus 669d83f595 Adapt file model tests to recent changes 2024-06-14 23:58:23 +02:00
Martchus d6885624c0 Show where file is present in file browser 2024-06-14 23:46:53 +02:00
Martchus a7b2f0eaa6 Improve behavior of ignore pattern managment via file browser 2024-06-14 22:36:55 +02:00
Martchus 0729e180cb Improve dialog for confirming ignore pattern changes from file browser
* Show diff in proper text view with basic syntax highlighting
* Allow manual edits before applying changes
2024-06-14 21:23:35 +02:00
Martchus 8a51248791 Allow compilation of tray application and backend libs for web assembly
Make use of all Qt features conditional that are not supported on the
web assembly platform (mainly TLS support and QProcess).

Note that HTTPs is supposed to work nevertheless as long as the certificate
matches (with the usual corss-site scripting limitations).
2024-06-10 22:42:54 +02:00
Martchus 6646ce9a7b Split tests for ignore pattern matching and move them to separate file 2024-06-10 20:41:39 +02:00
Martchus 8a4f7f5b27 Support "/" path separators in ignore patterns under Windows as well
It is actually possible to use normal "/" under Winodows as well in ignore
patterns so it makes sense if the matching supports both, "/" and "\".
2024-06-09 13:48:23 +02:00
Martchus 468b7f8b6b Make the `TextViewDialog` an actual `QDialog` 2024-06-08 21:38:00 +02:00
Martchus 11da31b21f Ensure bundled OpenSSL libraries have the name expected by the Qt framework 2024-06-08 21:19:59 +02:00
Martchus 91dd27e4ad Log whether TLS support is available under Android 2024-06-08 21:05:32 +02:00
Martchus 5221549f43 Allow creating an APK for Android 2024-06-08 20:59:56 +02:00
Martchus f1762a4620 Allow enabling insecure TLS connections for testing 2024-06-08 20:57:17 +02:00
Martchus ef111fb0aa Improve dialog for editing ignore patterns 2024-06-07 00:45:26 +02:00
Martchus 1794bc5c81 Apply clang-format 2024-06-06 23:57:51 +02:00
Martchus 13324a154d Fix message box buttons when showing notification from file model 2024-06-06 23:57:27 +02:00
Martchus 30bcb8f8af Mention website in the download section 2024-06-06 23:09:30 +02:00
Martchus d53788c2f5 Bump patch version 2024-06-06 22:54:33 +02:00
Martchus 7b2f0bac46 Update release date 2024-06-04 19:02:56 +02:00
Martchus 619be78c54 Update libsyncthing to v1.27.8 2024-06-04 18:58:22 +02:00
Martchus f585647f8b Fix compilation against Qt 5 2024-06-03 11:56:41 +02:00
Martchus effb1de0f1 Add actions to specifically ignore/include items selected in file browser 2024-06-02 15:33:44 +02:00
Martchus 5769962965 Fix restoring web view geometry
The geometry must not be saved in the destructor because at this point it
seems already invalidated leading to the next web view window being
restored to a very small size. It works when saving the geometry in the
close event instead.
2024-06-02 14:05:26 +02:00
Martchus 3e259bd6cf Allow expanding paths in libsyncthing directory paths
Implements https://github.com/Martchus/syncthingtray/issues/243
2024-06-02 13:28:36 +02:00
Martchus 5a123d9b64 Add tests for diffing and compuation of new ignore patterns in file model 2024-06-01 23:17:08 +02:00