Commit Graph

925 Commits

Author SHA1 Message Date
Martchus 072bef22c5 plasmoid: Prevent overlapping status info 2019-08-08 21:51:27 +02:00
Martchus b9402ce374 plasmoid: Ensure keyboard events can be received after initialization 2019-08-08 21:35:56 +02:00
Martchus bd345dfe12 Apply cmake-format 2019-08-08 21:34:24 +02:00
Martchus 584afb52d9 Update libsyncthing 2019-08-07 18:42:41 +02:00
Martchus 971e2dca6a Fix including BasicConfig in libsyncthing 2019-08-06 10:57:42 +02:00
Martchus be0be08997 Apply cmake-format 2019-08-06 00:13:15 +02:00
Martchus e2037aebc1 Fix further configuration issues with libsyncthing
* Can not use BUNDLED_TARGETS because syncthinginternal is only an
  imported target
* Use INSTALL_INTERFACE generator expression to specify path of
  libsyncthinginternal.a for installation (imported target can not
  be exported apparently)
2019-08-06 00:12:58 +02:00
Martchus 495140cdf9 Use imported target for libsyncthinginternal
This way the pkg-config file can be generated correctly.
2019-08-05 19:10:57 +02:00
Martchus 7b668ca02c Update version to 0.10.0 2019-08-05 18:45:53 +02:00
Martchus a2d5307e4f Apply clang-format 2019-08-03 16:31:38 +02:00
Martchus 0a2eae6542 Improve libsyncthing
* Update Syncthing version
* Use utilities from https://github.com/syncthing/syncthing/pull/5871
* Remove useless use_standard_filesystem()
2019-08-03 16:31:23 +02:00
Martchus 4e60153070 Update translations 2019-08-02 17:09:05 +02:00
Martchus db16727956 Show launcher log also before opening settings dialog 2019-08-02 17:05:48 +02:00
Martchus 1982d26295 Remove code duplication in SyncthingApplet 2019-08-01 19:08:58 +02:00
Martchus 2363e9a7d4 Update status icon and tooltip when changing settings
Required because the reconnect interval which might be included
in the tooltip might have changed.
2019-08-01 19:07:58 +02:00
Martchus 6057b2cb2c Map context menu coordinates to top-level widget
Map context menu coordinates to top-level widget if the top-level
widget is a QMenu. Otherwise the context menu is not displayed at
the right position. Not sure why this workaround is required.

The check for QMenu is required. Otherwise the "windowed" mode
enabled via --windowed CLI argument would not work anymore. In
this mode the top-level window is a regular window.

Adding the window flags Qt::Sheet or Qt::Dialog to the QMenu
would help as well but that prevents closing the menu (see
https://github.com/Martchus/syncthingtray/issues/41).
2019-07-31 22:26:11 +02:00
Martchus d07bdba5de Add parent to context menus
This is recommended in a Wayland porting guide.
2019-07-31 22:26:00 +02:00
Martchus 19816437ea Use a different parent for dialogs
This allows customizing the tray menu/widget using style sheets
without affecting the dialogs.
2019-07-31 20:47:19 +02:00
Martchus 353f1e2463 Allow to distinguish icon colors within UI and system tray
This is useful because sometimes the background color of the system
tray is dark but the overall system UI still uses a light theme.

For the Plasmoid this should never be the case, though. Hence the
extra settings are not available there.
2019-07-31 20:16:43 +02:00
Martchus 59e0f93c1c Add note regarding Wayland 2019-07-31 20:06:32 +02:00
Martchus 2c9bf8961f Update documentation for adding translations 2019-07-31 20:04:25 +02:00
Martchus 13cc4b8775 Set Go linker flags for libsyncthing 2019-07-29 18:00:42 +02:00
Martchus fbd0174086 Update libsyncthing 2019-07-29 17:59:58 +02:00
Martchus 972f7b2776 Stop libsyncthing when stopping the application 2019-07-29 16:00:41 +02:00
Martchus f9eba2d012 Update translations 2019-07-28 22:05:27 +02:00
Martchus 02971698cf Show libsyncthing version as tooltip 2019-07-28 22:01:30 +02:00
Martchus 4b6cb69586 Fix missing exports 2019-07-28 21:34:51 +02:00
Martchus 9b924d4138 Fix closing tray menu 2019-07-28 10:56:59 +02:00
Martchus 5e39683baa Document Wayland issues 2019-07-27 15:43:20 +02:00
Martchus 9b8191c105 Use consistent prefix for static member variables 2019-07-27 15:11:50 +02:00
Martchus d8f35aceaf Don't use deprecated QProcess::finished() overload 2019-07-27 15:07:26 +02:00
Martchus 1bdba31c70 Improve behavior under Wayland
* Add workaround for using QCursor::pos()
* Set window flags and parent of TrayMenu to it is shown
  like a context menu
2019-07-27 15:04:14 +02:00
Martchus 9f9b9124a4 Improve code of dir/dev/download views
* Reduce indentation
* Remove unused #include <QCursor>
* Map context menu position to viewport
* Use const when possible
2019-07-27 11:15:13 +02:00
Martchus 03d15d5bfb Update notes about Plasmoid testing 2019-07-26 22:02:27 +02:00
Martchus bcb81e15b5 Apply clang-format 2019-07-26 22:02:11 +02:00
Martchus fb3c9e9635 Adjust launcher/service apply yet another time
* Only reconnect later if the launcher/service is actually running
* Don't try to reconnect if systemd unit is not available
2019-07-26 16:36:48 +02:00
Martchus bb65a97889 Document SyncthingService 2019-07-25 19:54:37 +02:00
Martchus 1ce8ec9c5f Consider systemd status only relevant if unit is available
If the unit is not available is is not possible to tell whether the
service is running or not so the systemd status should not be
considered yet. As soon as the status changes Systemd::apply() is
executed again and the status possibly considered.
2019-07-25 18:32:52 +02:00
Martchus 7e46096feb Log directory/device list renewal when event logging enabled
This is useful for debugging to track (unnecessary) renewal of those
lists.
2019-07-25 18:27:38 +02:00
Martchus 205189c34a Update translations 2019-07-21 22:37:23 +02:00
Martchus 62fc662692 Add tooltips to plasmoid statistics 2019-07-21 22:33:52 +02:00
Martchus 248af38f8b
Merge pull request #40 from yan12125/patch-1
README.md: add Mac OS X/macOS-related contents
2019-07-21 17:06:15 +02:00
Chih-Hsuan Yen cbdee54f04
README.md: add Mac OS X/macOS-related contents 2019-07-21 22:41:06 +08:00
Martchus 6fcc2e2208 Apply clang-format 2019-07-20 20:32:34 +02:00
Martchus c378b17de4 Don't abuse organization domain for website in AboutDialog 2019-07-20 20:32:15 +02:00
Martchus f4097d3d79 Fix positioning of context menus under Wayland
Does not cover positioning the tray widget itself yet.
2019-07-20 18:56:20 +02:00
Martchus 2c95a15f1a Update translations 2019-07-20 17:15:32 +02:00
Martchus bd3e0f15e8 Polish autostart code 2019-07-20 17:12:55 +02:00
Martchus 16f6d2fb76
Merge pull request #39 from yan12125/macos-autostart
Allow autostarting syncthingtray on macOS as launch agents
2019-07-20 09:34:40 +02:00
Chih-Hsuan Yen 1e90925fba
Allow autostarting syncthingtray on macOS as launch agents 2019-07-20 12:10:32 +08:00