Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Fix window resizing to default size unexpectedly
Browse files Browse the repository at this point in the history
  • Loading branch information
david-swift committed Dec 20, 2023
1 parent 396cbbf commit e59d0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Adwaita/Window/Window.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public struct Window: WindowScene {
let content = content(window)
let storage = content.widget(modifiers: []).container(modifiers: [])
window.setChild(storage.view)
window.setDefaultSize(width: defaultSize?.0, height: defaultSize?.1)
setProperties(window: window)
updateShortcuts(window: window)
return storage
Expand Down Expand Up @@ -108,7 +109,6 @@ public struct Window: WindowScene {
/// Set some general propreties of the window.
/// - Parameter window: The window.
func setProperties(window: GTUIApplicationWindow) {
window.setDefaultSize(width: defaultSize?.0, height: defaultSize?.1)
if let title {
window.setTitle(title)
}
Expand Down

0 comments on commit e59d0c0

Please sign in to comment.