summaryrefslogtreecommitdiffstats
path: root/app/Main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'app/Main.qml')
-rw-r--r--app/Main.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Main.qml b/app/Main.qml
index 4011107..0b60d5c 100644
--- a/app/Main.qml
+++ b/app/Main.qml
@@ -29,6 +29,12 @@ Window {
visible: true
flags: Qt.FramelessWindowHint
+ Component.onCompleted: {
+ // Center window
+ root.x = root.screen.virtualX + root.screen.width / 2 - root.width / 2;
+ root.y = root.screen.virtualY + root.screen.height / 2 - root.height / 2;
+ }
+
BodyTemplateDialog {
id: bodyTemplate
anchors.centerIn: parent