()
| 64 | |
| 65 | // MARK: constructor |
| 66 | constructor() { |
| 67 | this.dragDrop = new DragDropLib() |
| 68 | this.loader = new LoaderLib() |
| 69 | this.files = new FileLib() |
| 70 | this.prefs = new PrefLib() |
| 71 | this.modal.mismatch = new ModalOverlay('#open_game_modal') |
| 72 | this.modal.modInfo = new ModalOverlay('#open_mod_info_modal') |
| 73 | |
| 74 | window.main_IPC.receive('status:all', () => this.updateState() ) |
| 75 | window.main_IPC.receive('files:deleteTrigger', () => { |
| 76 | if ( this.track.selected.size !== 0 ) { |
| 77 | this.startFile('delete') |
| 78 | } else if ( this.track.openCollection !== null ) { |
| 79 | window.main_IPC.folder.remove(this.track.openCollection) |
| 80 | } |
| 81 | }) |
| 82 | } |
| 83 | |
| 84 | #updateTracking(data) { |
| 85 | const lastColSet = this.track.lastPayload?.set_Collections || null |
nothing calls this directly
no test coverage detected