From 95df0f6cdaaf5973307d8cf3e81bd8ddfd2e6607 Mon Sep 17 00:00:00 2001 From: Anand Sudhir Prayaga Date: Tue, 12 Feb 2019 11:56:17 +0100 Subject: [PATCH] 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 --- main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/main.go b/main.go index 7824a136..3dcc2612 100644 --- a/main.go +++ b/main.go @@ -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) } }