diff --git a/ui/main.go b/ui/main.go index 47e38c4..e67f12f 100644 --- a/ui/main.go +++ b/ui/main.go @@ -41,6 +41,7 @@ func (p *Program) Run() { w := p.App.NewWindow("OlcRTC") w.CenterOnScreen() w.Resize(fyne.NewSize(1280, 700)) + w.SetOnClosed(p.olcrtcStop) p.ParentWindow = w settingsBtn := widget.NewButtonWithIcon("Settings", theme.SettingsIcon(), func() {