()
| 2043 | selectedMods = {} |
| 2044 | |
| 2045 | constructor() { |
| 2046 | this.overlayDiv = MA.byId('fileOpCanvas') |
| 2047 | this.overlay.show = () => { |
| 2048 | this.overlayDiv.clsShow() |
| 2049 | this.overlayDiv.querySelector('.fileOpCanvas-body').scrollTop = 0 |
| 2050 | } |
| 2051 | this.overlay.hide = () => { |
| 2052 | this.overlayDiv.clsHide() |
| 2053 | this.stop() |
| 2054 | } |
| 2055 | |
| 2056 | this.infoData = MA.byId('file_op_display') |
| 2057 | this.feedback = MA.byId('file_op_result') |
| 2058 | |
| 2059 | MA.byId('fileOpCanvas-button').addEventListener('click', () => { this.process() }) |
| 2060 | MA.byId('fileOpCanvas-button-close').addEventListener('click', () => { |
| 2061 | this.overlay.hide() // File Canvas |
| 2062 | }) |
| 2063 | |
| 2064 | window.main_IPC.receive('files:operation', (mode, mods) => { |
| 2065 | this.start_external(mode, mods) |
| 2066 | }) |
| 2067 | } |
| 2068 | |
| 2069 | // MARK: start (ext module) |
| 2070 | start_external(mode, mods) { |
nothing calls this directly
no test coverage detected