Simplify saving app state

This commit is contained in:
Stefan Haller 2024-01-29 22:06:26 +01:00
parent 5b567f3774
commit ea42275f06

View file

@ -25,10 +25,7 @@ func (self *CustomCommandAction) Call() error {
)
}
err := self.c.SaveAppState()
if err != nil {
self.c.Log.Error(err)
}
self.c.SaveAppStateAndLogError()
self.c.LogAction(self.c.Tr.Actions.CustomCommand)
return self.c.RunSubprocessAndRefresh(