diff options
author | Claudio Cambra <claudio.cambra@gmail.com> | 2022-08-16 17:52:21 +0300 |
---|---|---|
committer | Claudio Cambra <claudio.cambra@gmail.com> | 2022-08-17 15:01:32 +0300 |
commit | 2ab95a30f9e6289469d17047bc527f3338f94b16 (patch) | |
tree | ba829cb49b0c869aab55fcb8142b3842d3ed21e3 /src/gui/tray/FileActivityDialog.qml | |
parent | 1e7fb932b061c1187bf02a0f9eeb0ac56cbc1588 (diff) |
Ensure file activity dialog is centered on screen and appears at top of window stack
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
Diffstat (limited to 'src/gui/tray/FileActivityDialog.qml')
-rw-r--r-- | src/gui/tray/FileActivityDialog.qml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/tray/FileActivityDialog.qml b/src/gui/tray/FileActivityDialog.qml index 58264ef28..b2d5fb809 100644 --- a/src/gui/tray/FileActivityDialog.qml +++ b/src/gui/tray/FileActivityDialog.qml @@ -30,8 +30,11 @@ Window { } Component.onCompleted: { - // Set this explicitly, otherwise on macOS it will appear behind the tray - x = screen.width / 2 - width / 2 - y = screen.height / 2 - height / 2 + Systray.forceWindowInit(dialog); + Systray.positionWindowAtScreenCenter(dialog); + + dialog.show(); + dialog.raise(); + dialog.requestActivate(); } } |