(icon: Icon)
| 42 | } |
| 43 | |
| 44 | setIcon(icon: Icon) { |
| 45 | if (!(icon instanceof Icon)) |
| 46 | throw new Error('Must pass Icon to the setIcon method.'); |
| 47 | if (this.service.icon?.filePath == icon.filePath) |
| 48 | return; |
| 49 | this.#removeIcon(this.service.icon); |
| 50 | this.service.setIcon(this.#copyIcon(icon)); |
| 51 | } |
| 52 | |
| 53 | setShortcut(shortcut: string | null) { |
| 54 | if (this.shortcut == shortcut) |
no test coverage detected