mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 19:50:15 +08:00
[v3] don't wrap events in slice
This commit is contained in:
parent
4a2dc2875f
commit
7c9e7d7158
@ -381,7 +381,7 @@ func (a *App) RegisterService(service Service) {
|
||||
}
|
||||
|
||||
// EmitEvent will emit an event
|
||||
func (a *App) EmitEvent(name string, data ...any) {
|
||||
func (a *App) EmitEvent(name string, data any) {
|
||||
a.customEventProcessor.Emit(&CustomEvent{
|
||||
Name: name,
|
||||
Data: data,
|
||||
|
Loading…
Reference in New Issue
Block a user