mirror of https://github.com/lidarr/Lidarr
Fixed: Slow loading root folders caused them to never appear
This commit is contained in:
parent
49d0d4c357
commit
8af3348e7f
|
@ -24,9 +24,7 @@ var Layout = Marionette.Layout.extend({
|
||||||
|
|
||||||
initialize : function() {
|
initialize : function() {
|
||||||
this.collection = RootFolderCollection;
|
this.collection = RootFolderCollection;
|
||||||
this.rootfolderListView = new RootFolderCollectionView({ collection : RootFolderCollection });
|
this.rootfolderListView = null;
|
||||||
|
|
||||||
this.listenTo(this.rootfolderListView, 'itemview:folderSelected', this._onFolderSelected);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow : function() {
|
onShow : function() {
|
||||||
|
@ -60,7 +58,12 @@ var Layout = Marionette.Layout.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
_showCurrentDirs : function() {
|
_showCurrentDirs : function() {
|
||||||
|
if (!this.rootfolderListView) {
|
||||||
|
this.rootfolderListView = new RootFolderCollectionView({ collection : RootFolderCollection });
|
||||||
this.currentDirs.show(this.rootfolderListView);
|
this.currentDirs.show(this.rootfolderListView);
|
||||||
|
|
||||||
|
this.listenTo(this.rootfolderListView, 'itemview:folderSelected', this._onFolderSelected);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_keydown : function(e) {
|
_keydown : function(e) {
|
||||||
|
|
Loading…
Reference in New Issue