mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Update CreateApp API
This commit is contained in:
16
v2/wails.go
16
v2/wails.go
@@ -14,19 +14,7 @@ type Runtime = runtime.Runtime
|
||||
// Store is an alias for the Store object
|
||||
type Store = runtime.Store
|
||||
|
||||
// CreateAppWithOptions creates an application based on the given config
|
||||
func CreateAppWithOptions(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,
|
||||
}
|
||||
|
||||
// CreateApp creates an application based on the given config
|
||||
func CreateApp(options *options.App) (*app.App, error) {
|
||||
return app.CreateApp(options)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user