1
0
mirror of https://github.com/taigrr/wtf synced 2026-03-30 17:25:21 -07:00

Add ability to explicitly stop modules via a QuitChan

This commit is contained in:
Chris Cummer
2019-07-27 07:25:55 -07:00
parent cfd3c731ba
commit 73391b06e4
8 changed files with 50 additions and 19 deletions

View File

@@ -60,14 +60,14 @@ func (wtfApp *WtfApp) Start() {
// Stop kills all the currently-running widgets in this app
func (wtfApp *WtfApp) Stop() {
wtfApp.disableAllWidgets()
wtfApp.stopAllWidgets()
}
/* -------------------- Unexported Functions -------------------- */
func (wtfApp *WtfApp) disableAllWidgets() {
func (wtfApp *WtfApp) stopAllWidgets() {
for _, widget := range wtfApp.Widgets {
widget.Disable()
widget.Stop()
}
}