1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Do not fail with error if the configuration has references to widgets that do not exist

E.g. If the user is working on new widgets adn switching back and forth on version with/without the "new" widget, the applciation crashes with an error when using the old version of the app.
I cant see that this is especially helpful
This commit is contained in:
Anand Sudhir Prayaga 2019-02-12 11:56:17 +01:00
parent 373d2bc504
commit 95df0f6cda

View File

@ -259,7 +259,6 @@ func addWidget(app *tview.Application, pages *tview.Pages, widgetName string) {
case "zendesk":
widgets = append(widgets, zendesk.NewWidget(app))
default:
panic(widgetName)
}
}