5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 22:13:36 +08:00

Update CreateApp API

This commit is contained in:
Lea Anthony 2021-01-26 06:45:23 +11:00
parent 83d6dac7cf
commit fe0f0e29e8
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -14,19 +14,7 @@ type Runtime = runtime.Runtime
// Store is an alias for the Store object // Store is an alias for the Store object
type Store = runtime.Store type Store = runtime.Store
// CreateAppWithOptions creates an application based on the given config // CreateApp creates an application based on the given config
func CreateAppWithOptions(options *options.App) (*app.App, error) { func CreateApp(options *options.App) (*app.App, error) {
return app.CreateApp(options)
}
// CreateApp creates an application based on the given title, width and height
func CreateApp(title string, width int, height int) (*app.App, error) {
options := &options.App{
Title: title,
Width: width,
Height: height,
}
return app.CreateApp(options) return app.CreateApp(options)
} }