(id: string)
| 783 | } |
| 784 | |
| 785 | hideView(id: string) { |
| 786 | log.log('[main] webcontentsview-hide: hiding view with id', id) |
| 787 | const view = this.views.get(id) |
| 788 | if (!view) { |
| 789 | log.warn('[main] webcontentsview-hide: no view found with id', id) |
| 790 | return |
| 791 | } |
| 792 | |
| 793 | try { |
| 794 | this.removeChildView(view) |
| 795 | log.log('[main] webcontentsview-hide: view with id', id, 'hidden successfully') |
| 796 | } catch (e) { |
| 797 | log.warn('[main] Could not hide WebContentsView', e) |
| 798 | } |
| 799 | } |
| 800 | |
| 801 | hideAllViews(opts?: { hidePermanentlyActive?: boolean }) { |
| 802 | const options = { |
no test coverage detected