Commit Graph

127 Commits

Author SHA1 Message Date
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 23b3eca012 Prevent warning about shadowed variable 2024-06-01 22:00:42 +02:00
Martchus 7114adb696 Allow modifying ignore patterns 2024-05-31 17:05:00 +02:00
Martchus 062e1107f3 Update translations 2024-05-31 16:13:29 +02:00
Martchus 2ed7f122fe Add basic action to allow removing related ignore patterns
This is probably not a very useful action but a first step to manipulate
ignore patterns based on a selection in the file browser. It has not been
tested very well but the whole feature is behind a feature flag so that is
ok for now.
2024-05-31 16:13:05 +02:00
Martchus 159d91bfdc Avoid warnings about implicit conversions/promotions when compiling with Clang 2024-05-19 22:31:20 +02:00
Martchus 9dcd1c268b Disable the autostart setting via `NO_AUTOSTART_SETTINGS` also in wizard 2024-05-19 16:28:44 +02:00
Martchus aef925743e Allow selecting items in file browser
This is the first step to allowing mass actions like ignoring/unignoring
all selected items.
2024-05-18 23:54:46 +02:00
Martchus 1ca2eecbf1 Allow disabling autostart settings
This is useful when the target platform/packaging is not actually supported, e.g.
currently the code does not work when Syncthing Tray is packaged as Flatpak.
2024-05-18 14:13:38 +02:00
Martchus 96578c335d Avoid warning about double promotion when compiling with clang 2024-05-18 13:08:42 +02:00
Martchus f55d3431ff Update translations
Translations for experimental/WIP features are still unfinished.
2024-05-08 11:24:24 +02:00
Martchus 9e4208fc0d Add simple view for showing ignore patterns 2024-05-05 14:47:50 +02:00
Martchus 83e1dd6d8a Improve file browser 2024-05-04 22:44:00 +02:00
Martchus 047a4e461e Allow refreshing root in file browser 2024-05-01 15:58:09 +02:00
Martchus eb4c1ac761 Update default CLI parameters of the launcher
* Use command syntax and double-dashes to be in-line with what Syncthing's
  help text suggests
* Drop the `--no-restart` parameter; I probably only added it after
  checking what flags the systemd-unit file specifies. However, the
  systemd-unit file specifies `--no-restart` only because restarts are
  handled by systemd in that case. For the launcher of Syncthing Tray it
  makes probably more sense to keep restarts enabled by default.
2024-04-26 20:38:14 +02:00
Martchus f04d959ef4 Preserve size when selecting a status icon color preset
It is probably not the expected behavior that selecting a preset also
reverts the rendering resolution to the default value.
2024-04-26 20:27:59 +02:00
Martchus 1283faff96 Fix compatibility with Qt < 6.7 2024-04-19 12:59:34 +02:00
Martchus 0ee0dbd10a Update translations 2024-04-19 00:07:28 +02:00
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 3fc7fbd542 Improve comment in web page code 2024-04-08 18:10:06 +02:00
Martchus 21144421de Fix showing external links via built-in web view
Pass profile to new web page (that is being created when a `target="blank"`
link is clicked) to avoid running into `Can not adopt content from a
different WebEngineProfile.`.
2024-04-08 18:07:27 +02:00
Martchus 35d03551c4 Update translations 2024-04-06 19:47:16 +02:00
Martchus 548251f538 Fix positioning issues with remote file browser 2024-04-06 19:38:54 +02:00
Martchus 93b5d66875 Allow browsing remote/global files 2024-04-05 01:30:00 +02:00
Martchus 6b7d916914 Make autostart entry for GNU/Linux more robust
* Add `--wait` parameter so Syncthing Tray will wait until the tray becomes
  available; this might help if Syncthing Tray is started by the desktop
  environment before the tray is available (unless it is started too soon
  even for that)
* Add `X-LXQt-Need-Tray=true` to ensure the system tray is available on
  LXQt because just `--wait` might not be sufficient here (according to
  https://github.com/Martchus/syncthingtray/issues/240); this is in-line
  with the autostart entry of https://github.com/lxqt/lxqt-powermanagement
2024-03-16 00:14:44 +01:00
Martchus a16a343639 Update translations 2024-03-09 11:55:48 +01:00
Martchus ae77b3071a Clarify the meaning of libsyncthing's directories via tooltips 2024-03-09 11:53:13 +01: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 8bc45de18d Remove unused header in `setupdetection.h` 2024-03-09 11:40:15 +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 53f4ac6fcb Consider metered setting also when autostarting Syncthing 2024-03-07 01:10:34 +01:00
Martchus 0db27b14b0 Update translations 2024-02-29 14:12:02 +01:00
Martchus 1e9d9274cb Apply setting to stop on metered connection immediately
Just setting this when launching is not enough because then enabling or
disabling the setting while Syncthing is already running doesn't work.
2024-02-26 16:08:12 +01:00
Martchus dff6bcab67 Apply change of `global.h` template 2024-02-22 19:43:14 +01:00
Martchus 8372dfbcaa Update translations 2024-02-22 14:31:16 +01:00
Martchus 827251004e Configure checkboxes for metered connection also if there's no launcher
Otherwise the checkbox is just visible but doesn't do anything.
2024-02-19 18:33:27 +01:00
Martchus 45c48d989b Improve form layout in connection option page 2024-02-19 18:31:25 +01:00
Martchus 1e56f3dd82 Fix consistency issue with punctuation in German translation 2024-02-18 15:39:09 +01:00
Martchus 960f43f82a Update translations 2024-02-17 18:12:24 +01:00
Martchus 211a7942ef Apply clang-format 2024-02-17 18:11:58 +01:00
Martchus d2dc15fdde Make it more clear when the options regarding metered connections are not available
Since this feature will likely not be available in mingw-w64-based builds of
the next release (due to missing cppwinrt) it is important to make it clear
when those options don't actually work. With this change the checkboxes are
completely disabled in case the feature is not available (instead of just
providing the information via the tooltip).
2024-02-17 18:07:46 +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 4a61f552a2 Update translations 2024-02-15 22:22:28 +01:00
Martchus 643f0bf5ff Fix initialization of `m_relevantConnection` 2024-02-15 22:22:18 +01:00
Martchus af26b47105 Update translations 2024-02-15 22:13:38 +01:00
Martchus ed1ac2c2ed Fix sizing/wrapping/clipping problem of note in connection settings 2024-02-15 22:01:21 +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