mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-26 14:25:45 +03:00
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:
parent
1e7fb932b0
commit
2ab95a30f9
1 changed files with 6 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue