Fix #6160
This commit is contained in:
parent
7803b07e7f
commit
1dd3490611
@ -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…
x
Reference in New Issue
Block a user