From 2f795df701a4d49e2d3705a19166badf9733d9c8 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 3 Mar 2022 13:33:20 +0100 Subject: [PATCH] Ensure file activity dialog appears in centre of screen Signed-off-by: Claudio Cambra --- src/gui/tray/FileActivityDialog.qml | 7 +++++++ 1 file changed, 7 insertions(+) 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 + } } -- 2.30.2