5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-21 11:29:29 +08:00

ignore bindings notification callback

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
Zach Botterman 2025-03-02 22:49:31 -08:00 committed by GitHub
parent ad749721e9
commit d9af6dec32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,6 +60,7 @@ func (ns *Service) ServiceName() string {
// OnNotificationResponse registers a callback function that will be called when
// a notification response is received from the user.
//wails:ignore
func (ns *Service) OnNotificationResponse(callback func(response NotificationResponse)) {
ns.callbackLock.Lock()
defer ns.callbackLock.Unlock()