From 3f33070635b1ca1d6ce9188eaaf077a04fc501d2 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 23 Oct 2019 10:31:43 -0400 Subject: [PATCH] Automatically run clean when configs are loaded from file --- cmdClean.go | 3 ++- cmdSet.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmdClean.go b/cmdClean.go index aeb2eed..21e2853 100644 --- a/cmdClean.go +++ b/cmdClean.go @@ -15,6 +15,7 @@ func init() { func cmdClean(cmd []string) { clearView("Chat") + clearView("List") go populateChat() - + go populateList() } diff --git a/cmdSet.go b/cmdSet.go index 83e225c..bd5e17a 100644 --- a/cmdSet.go +++ b/cmdSet.go @@ -92,4 +92,5 @@ func loadFromToml() { if config.Has("Formatting.timeFormat") { timeFormat = config.Get("Formatting.timeFormat").(string) } + RunCommand("clean") }