| Index: ui/file_manager/file_manager/foreground/js/app_state_controller.js
|
| diff --git a/ui/file_manager/file_manager/foreground/js/app_state_controller.js b/ui/file_manager/file_manager/foreground/js/app_state_controller.js
|
| index 1a4532a61498e994e840ff6b68107540546070a1..e8ee58db825c401bcf3f20b60e5045e3da13bdc1 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/app_state_controller.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/app_state_controller.js
|
| @@ -83,7 +83,7 @@ AppStateController.prototype.initialize = function(ui, directoryModel) {
|
| // Restore preferences.
|
| this.ui_.setCurrentListType(
|
| this.viewOptions_.listType || ListContainer.ListType.DETAIL);
|
| - this.ui_.listContainer.sort(
|
| + this.directoryModel_.getFileList().sort(
|
| this.viewOptions_.sortField || 'modificationTime',
|
| this.viewOptions_.sortDirection || 'desc');
|
| if (this.viewOptions_.columns) {
|
| @@ -99,7 +99,7 @@ AppStateController.prototype.initialize = function(ui, directoryModel) {
|
| * Saves current view option.
|
| */
|
| AppStateController.prototype.saveViewOptions = function() {
|
| - var sortStatus = this.ui_.listContainer.getSortStatus();
|
| + var sortStatus = this.directoryModel_.getFileList().sortStatus;
|
| var prefs = {
|
| sortField: sortStatus.field,
|
| sortDirection: sortStatus.direction,
|
|
|