mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-12 23:19:29 +08:00
Update docs/src/content/docs/learn/badges.mdx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
7287c1eb5c
commit
c0a83efe6d
@ -14,9 +14,8 @@ Wails provides a cross-platform badge service for desktop applications. This ser
|
|||||||
|
|
||||||
First, initialize the badge service:
|
First, initialize the badge service:
|
||||||
|
|
||||||
```go
|
|
||||||
import "github.com/wailsapp/wails/v3/pkg/application"
|
import "github.com/wailsapp/wails/v3/pkg/application"
|
||||||
import "github.com/wailsapp/wails/v3/services/badge"
|
import "github.com/wailsapp/wails/v3/pkg/services/badge"
|
||||||
|
|
||||||
// Create a new badge service
|
// Create a new badge service
|
||||||
badgeService := badge.New()
|
badgeService := badge.New()
|
||||||
@ -27,7 +26,6 @@ app := application.New(application.Options{
|
|||||||
application.NewService(badgeService),
|
application.NewService(badgeService),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
```
|
|
||||||
|
|
||||||
## Badge Operations
|
## Badge Operations
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user