| Index: ui/file_manager/file_manager/foreground/js/file_manager.js
|
| diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
|
| index 98ad6597bf3d826fe9e0a5892597449126afba75..3d4aa7ea7518ec472eeb6479ae216e6964c7ccc1 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/file_manager.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
|
| @@ -1254,6 +1254,13 @@ FileManager.prototype = /** @struct */ {
|
| };
|
|
|
| /**
|
| + * @return {boolean} True if the current directory content is from MTP volume.
|
| + */
|
| + FileManager.prototype.isOnMTP = function() {
|
| + return this.directoryModel_.isOnMTP();
|
| + };
|
| +
|
| + /**
|
| * Check if the drive-related setting items should be shown on currently
|
| * displayed gear menu.
|
| * @return {boolean} True if those setting items should be shown.
|
|
|