feat: WailsShutdown callback

Now handles proper shutdown through:
  * runtime.Window.Close()
  * Killing the main window
  * Ctrl-C
This commit is contained in:
Lea Anthony
2019-10-23 13:09:27 +11:00
parent b75aee1128
commit 86d850ac12
10 changed files with 122 additions and 24 deletions

View File

@@ -5,4 +5,5 @@ type IPCManager interface {
BindRenderer(Renderer)
Dispatch(message string)
Start(eventManager EventManager, bindingManager BindingManager)
Shutdown()
}