Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v3-alpha' into v3-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Sep 8, 2024
2 parents 1c574e7 + 5481f3a commit cc70b98
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion v3/pkg/application/application_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (a *linuxApp) setApplicationMenu(menu *Menu) {

func (a *linuxApp) run() error {

a.parent.On(events.Linux.ApplicationStartup, func(evt *ApplicationEvent) {
a.parent.OnApplicationEvent(events.Linux.ApplicationStartup, func(evt *ApplicationEvent) {
// TODO: What should happen here?
})
a.setupCommonEvents()
Expand Down
2 changes: 1 addition & 1 deletion v3/pkg/application/events_common_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func (a *linuxApp) setupCommonEvents() {
for sourceEvent, targetEvent := range commonApplicationEventMap {
sourceEvent := sourceEvent
targetEvent := targetEvent
a.parent.On(sourceEvent, func(event *ApplicationEvent) {
a.parent.OnApplicationEvent(sourceEvent, func(event *ApplicationEvent) {
event.Id = uint(targetEvent)
applicationEvents <- event
})
Expand Down
12 changes: 6 additions & 6 deletions v3/pkg/application/webview_window_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func (w *linuxWebviewWindow) run() {
}

w.setURL(startURL)
w.parent.On(events.Linux.WindowLoadChanged, func(_ *WindowEvent) {
w.parent.OnWindowEvent(events.Linux.WindowLoadChanged, func(_ *WindowEvent) {
if w.parent.options.JS != "" {
w.execJS(w.parent.options.JS)
}
Expand All @@ -298,19 +298,19 @@ func (w *linuxWebviewWindow) run() {
w.execJS(js)
}
})
w.parent.On(events.Linux.WindowFocusIn, func(e *WindowEvent) {
w.parent.OnWindowEvent(events.Linux.WindowFocusIn, func(e *WindowEvent) {
w.parent.emit(events.Common.WindowFocus)
})
w.parent.On(events.Linux.WindowFocusOut, func(e *WindowEvent) {
w.parent.OnWindowEvent(events.Linux.WindowFocusOut, func(e *WindowEvent) {
w.parent.emit(events.Common.WindowLostFocus)
})
w.parent.On(events.Linux.WindowDeleteEvent, func(e *WindowEvent) {
w.parent.OnWindowEvent(events.Linux.WindowDeleteEvent, func(e *WindowEvent) {
w.parent.emit(events.Common.WindowClosing)
})
w.parent.On(events.Linux.WindowDidMove, func(e *WindowEvent) {
w.parent.OnWindowEvent(events.Linux.WindowDidMove, func(e *WindowEvent) {
w.parent.emit(events.Common.WindowDidMove)
})
w.parent.On(events.Linux.WindowDidResize, func(e *WindowEvent) {
w.parent.OnWindowEvent(events.Linux.WindowDidResize, func(e *WindowEvent) {
w.parent.emit(events.Common.WindowDidResize)
})

Expand Down

0 comments on commit cc70b98

Please sign in to comment.