diff --git a/app/containers/HomePage/components/FileExplorer.jsx b/app/containers/HomePage/components/FileExplorer.jsx index d6578da2..894e7830 100644 --- a/app/containers/HomePage/components/FileExplorer.jsx +++ b/app/containers/HomePage/components/FileExplorer.jsx @@ -200,9 +200,7 @@ class FileExplorer extends Component { const { nodes: nextDirectoryNodes } = nextDirectoryLists[deviceType]; if (nextDirectoryNodes !== prevDirectoryNodes) { - this.setState({ - directoryGeneratedTime: Date.now() - }); + this._handleDirectoryGeneratedTime(); } } @@ -1323,6 +1321,8 @@ class FileExplorer extends Component { } actionCreateRequestSort({ order, orderBy }, deviceType); + + this._handleDirectoryGeneratedTime(); }; _handleSelectAllClick = (deviceType, event) => { @@ -1439,6 +1439,12 @@ class FileExplorer extends Component { return _primer; }; + _handleDirectoryGeneratedTime = () => { + this.setState({ + directoryGeneratedTime: Date.now() + }); + }; + render() { const { classes: styles, diff --git a/package.json b/package.json index e84ad467..80ef605b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "openmtp", "productName": "OpenMTP", - "version": "2.4.0", + "version": "2.4.1", "description": "OpenMTP | Android File Transfer for macOS", "scripts": { "build": "yarn lint && concurrently \"yarn build-main\" \"yarn build-renderer\"",