From: Claudio Cambra Date: Tue, 16 Aug 2022 14:52:21 +0000 (+0200) Subject: Ensure file activity dialog is centered on screen and appears at top of window stack X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~15^2~32^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2ab95a30f9e6289469d17047bc527f3338f94b16;p=nextcloud-desktop.git Ensure file activity dialog is centered on screen and appears at top of window stack Signed-off-by: Claudio Cambra --- 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(); } }