File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package app
22
33import (
4+ "log"
45 "sync"
56 "time"
67
@@ -81,6 +82,9 @@ func (a *App) Run() {
8182
8283 defer func () {
8384 a .Config .App .LastLogin = a .Config .App .CurrentLogin
84- config .SaveConfig (a .Config , "" )
85+ err := config .SaveConfig (a .Config , "" )
86+ if err != nil {
87+ log .Printf ("failed to save config: %v" , err )
88+ }
8589 }()
8690}
Original file line number Diff line number Diff line change @@ -127,7 +127,10 @@ func (a *App) generateHomeList(listHome *tview.List) {
127127
128128 if event .Key () == tcell .KeyCtrlL {
129129 a .Config .App .LastLoginMode = ! a .Config .App .LastLoginMode
130- config .SaveConfig (a .Config , "" )
130+ err := config .SaveConfig (a .Config , "" )
131+ if err != nil {
132+ log .Printf ("failed to save config: %v" , err )
133+ }
131134 a .generateHomeList (listHome )
132135 }
133136
You can’t perform that action at this time.
0 commit comments