From: Claudio Cambra Date: Thu, 3 Mar 2022 12:33:20 +0000 (+0100) Subject: Ensure file activity dialog appears in centre of screen X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~17^2~115^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2f795df701a4d49e2d3705a19166badf9733d9c8;p=nextcloud-desktop.git Ensure file activity dialog appears in centre of screen Signed-off-by: Claudio Cambra --- diff --git a/src/gui/tray/FileActivityDialog.qml b/src/gui/tray/FileActivityDialog.qml index 50452b0f3..785d45806 100644 --- a/src/gui/tray/FileActivityDialog.qml +++ b/src/gui/tray/FileActivityDialog.qml @@ -1,3 +1,4 @@ +import QtQuick 2.15 import QtQuick.Window 2.15 import com.nextcloud.desktopclient 1.0 as NC @@ -19,4 +20,10 @@ Window { anchors.fill: parent model: dialog.model } + + 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 + } }