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:
Roeland Jago Douma 2018-11-02 22:45:25 +01:00
parent 288991a610
commit 2d153adb64
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 1 deletions

View File

@ -568,8 +568,8 @@
} }
this._currentFileModel = model; this._currentFileModel = model;
this._detailsView.render();
this._detailsView.setFileInfo(model); this._detailsView.setFileInfo(model);
this._detailsView.render();
this._detailsView.$el.scrollTop(0); this._detailsView.$el.scrollTop(0);
}, },