Ensure file activity dialog is centered on screen and appears at top of window stack

Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
This commit is contained in:
Claudio Cambra 2022-08-16 16:52:21 +02:00
parent 1e7fb932b0
commit 2ab95a30f9

View file

@ -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();
}
}