Merge pull request #7963 from nextcloud/backport/7961/stable-3.16

[stable-3.16] Revert "gui: do not allow MainWindow to be resized"
This commit is contained in:
Matthieu Gallien 2025-03-04 11:16:32 +01:00 committed by GitHub
commit a3bc8519b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,16 +43,7 @@ ApplicationWindow {
readonly property int maxMenuHeight: Style.trayWindowHeight - Style.trayWindowHeaderHeight - 2 * Style.trayWindowBorderWidth
Component.onCompleted: {
Systray.forceWindowInit(trayWindow)
if (Systray.useNormalWindow) {
return;
}
// do not allow this window to be resized when it's frameless
this.minimumWidth = this.maximumWidth = this.width
this.minimumHeight = this.maximumHeight = this.height
}
Component.onCompleted: Systray.forceWindowInit(trayWindow)
// Close tray window when focus is lost (e.g. click somewhere else on the screen)
onActiveChanged: {