fix max recent entries number in codepad

This commit is contained in:
lxsang
2021-03-24 11:09:43 +01:00
parent 738eb1f831
commit 5ca29f5103
4 changed files with 5 additions and 1 deletions

View File

@ -956,7 +956,9 @@ namespace OS {
return;
}
this.setting.recent.push(file);
this.setting.recent.slice(0, 10);
if(this.setting.recent.length > 10)
this.setting.recent = this.setting.recent.slice(0, 10);
}
/**