(file: TAbstractFile)
| 387 | } |
| 388 | |
| 389 | private openAttachment(file: TAbstractFile): void { |
| 390 | if (file instanceof TFile) { |
| 391 | void this.app.workspace.getLeaf(false).openFile(file); |
| 392 | } else { |
| 393 | new Notice( |
| 394 | this.translate("notices.timeblockFileTypeNotSupported", { fileName: file.name }) |
| 395 | ); |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | private renderAttachmentsList(): void { |
| 400 | this.attachmentsList.empty(); |
no test coverage detected