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:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user