@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
|
@@ -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
|
}
|