Allow up to 10 favorite presets

Show favorite preset keyboard shortcut in tooltip
This commit is contained in:
Quincy Morgan
2019-03-05 12:27:42 -05:00
parent 61194e4a21
commit e22f3359f5
2 changed files with 12 additions and 8 deletions
+2 -2
View File
@@ -325,8 +325,8 @@ export function coreContext() {
return !(d.id === preset.id && d.geom === geom);
});
} else {
// only allow 3 favorites
if (favs.length === 3) {
// only allow 10 favorites
if (favs.length === 10) {
// remove the last favorite (first in, first out)
favs.pop();
}