Automatically run clean when configs are loaded from file

This commit is contained in:
2019-10-23 10:31:43 -04:00
parent f04bf8e545
commit 3f33070635
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@ func init() {
func cmdClean(cmd []string) { func cmdClean(cmd []string) {
clearView("Chat") clearView("Chat")
clearView("List")
go populateChat() go populateChat()
go populateList()
} }

View File

@ -92,4 +92,5 @@ func loadFromToml() {
if config.Has("Formatting.timeFormat") { if config.Has("Formatting.timeFormat") {
timeFormat = config.Get("Formatting.timeFormat").(string) timeFormat = config.Get("Formatting.timeFormat").(string)
} }
RunCommand("clean")
} }