mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-31 20:21:36 +02:00
Allow up to 10 favorite presets
Show favorite preset keyboard shortcut in tooltip
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user