v1.2.2
This commit is contained in:
4
main.go
4
main.go
@@ -23,6 +23,7 @@ func (a *App) onSecondInstanceLaunch(secondInstanceData options.SecondInstanceDa
|
||||
log.Println("user opened second from", secondInstanceData.WorkingDirectory)
|
||||
runtime.WindowUnminimise(a.ctx)
|
||||
runtime.WindowShow(a.ctx)
|
||||
log.Println("launchArgs", secondInstanceArgs)
|
||||
go runtime.EventsEmit(a.ctx, "launchArgs", secondInstanceArgs)
|
||||
}
|
||||
|
||||
@@ -62,6 +63,9 @@ func main() {
|
||||
if strings.HasSuffix(strings.ToLower(arg), ".eml") {
|
||||
app.StartupFilePath = arg
|
||||
}
|
||||
if strings.HasSuffix(strings.ToLower(arg), ".msg") {
|
||||
app.StartupFilePath = arg
|
||||
}
|
||||
}
|
||||
|
||||
// Create application with options
|
||||
|
||||
Reference in New Issue
Block a user