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-16 17:52:21 +0300 |
commit | 14cab5ef5ce53db5d6af51a2c4407a960da94ab2 (patch) | |
tree | b1888712857b1b1b9fdefc23edc8b006af8acc3c | |
parent | ff7331ab7836aecc2c04932d8b4d413e852fc731 (diff) |
Ensure file activity dialog is centered on screen and appears at top of window stackbugfix/file-activity-window-position
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
-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(); } } |