1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

ItemViewContainer didn't exist sometimes for root folders

Fixed: Error displaying existing root folders in some cases
Closes #1170
This commit is contained in:
Mark McDowall 2016-03-21 15:02:09 -07:00
parent 59e71a4cd9
commit af220c7f7b

View File

@ -27,10 +27,10 @@ var Layout = Marionette.Layout.extend({
this.rootfolderListView = new RootFolderCollectionView({ collection : RootFolderCollection });
this.listenTo(this.rootfolderListView, 'itemview:folderSelected', this._onFolderSelected);
this.listenTo(RootFolderCollection, 'sync', this._showCurrentDirs);
},
onRender : function() {
onShow : function() {
this.listenTo(RootFolderCollection, 'sync', this._showCurrentDirs);
this.currentDirs.show(new LoadingView());
if (RootFolderCollection.synced) {