mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Revert "gui: do not allow MainWindow to be resized"
This reverts commit 0963856a94.
turns out it's fine on Sonoma, whereas it breaks on Sequoia (the window
now gets stuck below the menubar) -- maybe I'll open up a QTBUG later if
I can reproduce this with a minimal example
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
This commit is contained in:
parent
f7c2f0dba8
commit
6449eda361
@ -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: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user