mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[linux] Implement events
This commit is contained in:
@@ -3,13 +3,10 @@
|
||||
package application
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/wailsapp/wails/v3/pkg/events"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -104,10 +101,12 @@ func (m *linuxApp) run() error {
|
||||
|
||||
// Add a hook to the ApplicationDidFinishLaunching event
|
||||
// FIXME: add Wails specific events - i.e. Shouldn't platform specific ones be translated to Wails events?
|
||||
m.parent.On(events.Mac.ApplicationDidFinishLaunching, func(evt *Event) {
|
||||
// Do we need to do anything now?
|
||||
fmt.Println("events.Mac.ApplicationDidFinishLaunching received!")
|
||||
})
|
||||
//m.parent.On(events.Mac.ApplicationDidFinishLaunching, func(evt *Event) {
|
||||
// // Do we need to do anything now?
|
||||
// fmt.Println("events.Mac.ApplicationDidFinishLaunching received!")
|
||||
//})
|
||||
|
||||
m.setupCommonEvents()
|
||||
|
||||
return appRun(m.application)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user