Skip to content

Commit

Permalink
Merge pull request nextcloud#7961 from nextcloud/revert/bugfix/macos-…
Browse files Browse the repository at this point in the history
…activity-nonresizable

Revert "gui: do not allow MainWindow to be resized"
  • Loading branch information
mgallien authored Mar 4, 2025
2 parents 7f44ab2 + e5de6be commit e134c01
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/gui/tray/MainWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit e134c01

Please sign in to comment.