This commit is contained in:
Flavio Fois
2026-02-04 19:57:31 +01:00
parent 0d6157b2ff
commit 0cda0a26fc
25 changed files with 1549 additions and 66 deletions

View File

@@ -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