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
diff options
context:
space:
mode:
authorClaudio Cambra <claudio.cambra@gmail.com>2022-08-16 17:52:21 +0300
committerClaudio Cambra <claudio.cambra@gmail.com>2022-08-16 17:52:21 +0300
commit14cab5ef5ce53db5d6af51a2c4407a960da94ab2 (patch)
treeb1888712857b1b1b9fdefc23edc8b006af8acc3c
parentff7331ab7836aecc2c04932d8b4d413e852fc731 (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.qml9
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();
}
}