Set the filemodel before rending the detailsview
fixes #10934 Else it triggers the rendering two times. Resulting is weird state in for example the comments. Because the comments for OLD_FILEID are retrieved but then the model is changed to NEW_FILEID. But the old comments still get in and get parsed. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
288991a610
commit
2d153adb64
|
@ -568,8 +568,8 @@
|
|||
}
|
||||
|
||||
this._currentFileModel = model;
|
||||
this._detailsView.render();
|
||||
this._detailsView.setFileInfo(model);
|
||||
this._detailsView.render();
|
||||
this._detailsView.$el.scrollTop(0);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue