(application, path)
| 296 | application.invalidateMenus(); |
| 297 | } |
| 298 | onOpenFile(application, path) { |
| 299 | if (this.onOpenFileList) |
| 300 | this.onOpenFileList.push(path); |
| 301 | else { |
| 302 | const info = system.getFileInfo(path); |
| 303 | if (info) { |
| 304 | if (info.directory) |
| 305 | this.doOpenDirectoryCallback(application, path); |
| 306 | else |
| 307 | this.doOpenFileCallback(application, path); |
| 308 | } |
| 309 | } |
| 310 | } |
| 311 | onOpenFileCallback(application) { |
| 312 | const onOpenFileList = this.onOpenFileList; |
| 313 | delete this.onOpenFileList; |
no test coverage detected