Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorClaudio Cambra <claudio.cambra@gmail.com>2022-03-03 15:33:20 +0300
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>2022-03-14 01:11:26 +0300
commit2f795df701a4d49e2d3705a19166badf9733d9c8 (patch)
treec13d344326564a60fb6be0f59360bf041fb6928a /src/gui
parent124a6e05265c6dc19496d474162b89ce5265f813 (diff)
Ensure file activity dialog appears in centre of screenbugfix/fileactivitydialog-center
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/tray/FileActivityDialog.qml7
1 files changed, 7 insertions, 0 deletions
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
+ }
}