file chooser dialog events implementation.

This commit is contained in:
Miroslav Šedivý 2021-01-19 21:01:31 +01:00
parent 22d31e871c
commit d4e0287eb5
13 changed files with 129 additions and 157 deletions

View file

@ -134,13 +134,16 @@ func (ws *WebSocketManagerCtx) Start() {
}
})
ws.desktop.OnWindowCreated(func(window uint32, name string, role string) {
ws.desktop.OnFileChooserDialogOpened(func() {
// TODO: Implement.
ws.logger.Info().
Uint32("window", window).
Str("name", name).
Str("role", role).
Msg("created new window")
Msg("FileChooserDialog opened")
})
ws.desktop.OnFileChooserDialogClosed(func() {
// TODO: Implement.
ws.logger.Info().
Msg("FileChooserDialog closed")
})
}