mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-17 03:02:51 +00:00
Clear away recent presets when switching to a new chapter
This commit is contained in:
@@ -81,6 +81,8 @@ export function uiIntro(context) {
|
||||
var chapters = chapterFlow.map(function(chapter, i) {
|
||||
var s = chapterUi[chapter](context, curtain.reveal)
|
||||
.on('done', function() {
|
||||
context.presets().init(); // clear away "recent" presets
|
||||
|
||||
buttons.filter(function(d) {
|
||||
return d.title === s.title;
|
||||
}).classed('finished', true);
|
||||
|
||||
Reference in New Issue
Block a user