Skip to content

Commit

Permalink
Ensure file activity dialog appears in centre of screen
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
  • Loading branch information
claucambra committed Mar 3, 2022
1 parent be21f03 commit cae08e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gui/tray/FileActivityDialog.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import QtQuick 2.15
import QtQuick.Window 2.15

import com.nextcloud.desktopclient 1.0 as NC
Expand All @@ -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
}
}

0 comments on commit cae08e0

Please sign in to comment.