Commit Graph

12 Commits

Author SHA1 Message Date
Martchus d99fadd1f1 Allow stopping the systemd service automatically on metered connections
This is the same as the feature already present in the launcher and
connection settings. Not sure how much sense it makes for systemd services
as they run rather independently from the UI but maybe it is useful.
2024-04-19 00:04:48 +02:00
Martchus cfc091d4fb Keep fallback to config directory if no data directory is configured for libsyncthing 2024-03-09 11:51:33 +01:00
Martchus 9ed9f94040 Fix setting data directory when starting libsyncthing
See https://github.com/Martchus/syncthingtray/issues/237
2024-03-09 11:37:43 +01:00
Martchus 211a7942ef Apply clang-format 2024-02-17 18:11:58 +01:00
Martchus 274a220c2c Log available network information backends in the error case 2024-02-17 02:06:38 +01:00
Martchus f4aa2b22ce Avoid starting Syncthing unintentionally when connection not metered anymore 2024-02-17 00:04:19 +01:00
Martchus 3b8d4f3d89 Fix crash when network information cannot be loaded 2024-02-16 20:03:51 +01:00
Martchus 643f0bf5ff Fix initialization of `m_relevantConnection` 2024-02-15 22:22:18 +01:00
Martchus 30fa37f048 Allow to pause automatically on metered network connections
* Allow to pause all devices on metered network connections (devices will
  be automatically resumed when network is no longer metered)
* Allow to stop Syncthing when it was started via the built-in launcher
  on metered network connections (it will be automatically started again
  when the network connection is no longer metered)
* See https://github.com/Martchus/syncthingtray/issues/231
2024-02-15 21:02:18 +01: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 db657bb1aa Use QByteArrayLiteral for such literals 2023-03-28 17:20:59 +02:00
Martchus 96e92f13a3 Avoid relying on symlink for include directories
Symlinks aren't working very well with Git under Windows so better avoid
them.
2023-02-27 18:27:33 +01:00