mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Ensure file activity dialog appears in centre of screen
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
This commit is contained in:
parent
124a6e0526
commit
2f795df701
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user