Skip to content

Commit

Permalink
refactor: rename file to tFile
Browse files Browse the repository at this point in the history
  • Loading branch information
gfxholo committed Jun 20, 2024
1 parent e8200ef commit 6a613a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/FileIconManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export default class FileIconManager extends IconManager {

constructor(plugin: IconicPlugin) {
super(plugin);
this.plugin.registerEvent(this.app.workspace.on('file-menu', (menu, file) => {
this.onContextMenu(file.path);
this.plugin.registerEvent(this.app.workspace.on('file-menu', (menu, tFile) => {
this.onContextMenu(tFile.path);
}));
this.plugin.registerEvent(this.app.workspace.on('files-menu', (menu, files) => {
this.onContextMenu(...files.map(file => file.path));
this.plugin.registerEvent(this.app.workspace.on('files-menu', (menu, tFiles) => {
this.onContextMenu(...tFiles.map(file => file.path));
}));
this.plugin.registerEvent(this.app.workspace.on('layout-change', () => {
if (activeDocument.contains(this.containerEl)) return;
Expand Down

0 comments on commit 6a613a4

Please sign in to comment.