@raydiant/playlist-window-manager 0.28.2-rc1 → 0.28.2-rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -128,6 +128,7 @@ var BrowserWindowRenderer = /** @class */ (function () {
128
128
  },
129
129
  })
130
130
  : this.createOrGetPooledBrowserWindow(windowId, {
131
+ paintWhenInitiallyHidden: false,
131
132
  show: false,
132
133
  /**
133
134
  * This option fixes window not being able to take fullscreen leaving
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raydiant/playlist-window-manager",
3
- "version": "0.28.2-rc1",
3
+ "version": "0.28.2-rc2",
4
4
  "description": "Window manager for playlist playback.",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -114,6 +114,7 @@ export default class BrowserWindowRenderer
114
114
  },
115
115
  })
116
116
  : this.createOrGetPooledBrowserWindow(windowId, {
117
+ paintWhenInitiallyHidden: false,
117
118
  show: false,
118
119
  /**
119
120
  * This option fixes window not being able to take fullscreen leaving
@@ -754,6 +754,10 @@ export default class PlaylistWindowManager extends EventEmitter {
754
754
  // If current window isn't defined we don't need to hide it but we still
755
755
  // want to make the next window the new current window.
756
756
  if (this.currentWindow) {
757
+ // TODO: Kind of a hack, could use win.on('show') event to trigger hide?
758
+ // Would only work in electron environment so need to do in BrowserWindowRenderer.
759
+ // Should show be async then?
760
+ // Or try paintWhenInitiallyHidden: false?
757
761
  if (this.options.closeWindowDelayMs !== undefined) {
758
762
  await delay(this.options.closeWindowDelayMs);
759
763
  }