Fix #6160
This commit is contained in:
parent
7803b07e7f
commit
1dd3490611
1 changed files with 4 additions and 1 deletions
|
|
@ -525,7 +525,10 @@ func (self *handler) update_recent() {
|
|||
name := self.themes_list.CurrentTheme().Name()
|
||||
recent = utils.Remove(recent, name)
|
||||
recent = append([]string{name}, recent...)
|
||||
self.cached_data.Recent = recent[:20]
|
||||
if len(recent) > 20 {
|
||||
recent = recent[:20]
|
||||
}
|
||||
self.cached_data.Recent = recent
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue