This commit is contained in:
Kovid Goyal 2023-04-06 15:14:21 +05:30
parent 7803b07e7f
commit 1dd3490611
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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
}
}