mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 22:13:36 +08:00
[windows] Fix frameless
This commit is contained in:
parent
92a80c7b69
commit
5dfbd5f71b
@ -51,11 +51,13 @@ func NewWindow(parent winc.Controller, options *options.App) *Window {
|
||||
}
|
||||
|
||||
result.SetSize(options.Width, options.Height)
|
||||
if options.Frameless == false {
|
||||
result.SetText(options.Title)
|
||||
result.EnableSizable(!options.DisableResize)
|
||||
result.EnableMaxButton(!options.DisableResize)
|
||||
result.SetMinSize(options.MinWidth, options.MinHeight)
|
||||
result.SetMaxSize(options.MaxWidth, options.MaxHeight)
|
||||
}
|
||||
|
||||
if options.Windows != nil {
|
||||
if options.Windows.WindowIsTranslucent {
|
||||
|
Loading…
Reference in New Issue
Block a user