mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Clear history immediately when switching sources
This commit is contained in:
@@ -16,9 +16,8 @@ export function uiSourceSwitch(context) {
|
||||
var live = d3.select(this)
|
||||
.classed('live');
|
||||
|
||||
context.connection()
|
||||
.switch(live ? keys[1] : keys[0]);
|
||||
|
||||
context.history().clearSaved();
|
||||
context.connection().switch(live ? keys[1] : keys[0]);
|
||||
context.enter(modeBrowse(context));
|
||||
context.flush();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user