app now only allows a single instance

This commit is contained in:
2024-09-07 22:35:51 -04:00
parent 908325628f
commit 45b11fa8f4
5 changed files with 26 additions and 7 deletions

View File

@ -26,6 +26,10 @@ func main() {
},
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.startup,
SingleInstanceLock: &options.SingleInstanceLock{
UniqueId: "49c93b6d-663d-4b7a-9cb0-8a469ea9182b",
OnSecondInstanceLaunch: app.onSecondInstanceLaunch,
},
Bind: []interface{}{
app,
},