Disable transparency for other than Linux

pull/131/head
Andrew 3 years ago
parent 8794910269
commit ad805c066f

@ -2,7 +2,7 @@
![Flathub](https://img.shields.io/flathub/downloads/io.github.aandrew_me.ytdn?label=Flathub%20downloads)
[![Flathub](https://img.shields.io/flathub/downloads/io.github.aandrew_me.ytdn?label=Flathub%20downloads)](https://beta.flathub.org/apps/details/me.aandrew.ytdownloader)
[![GitHub downloads](https://img.shields.io/github/downloads/aandrew-me/ytdownloader/total?label=Github%20downloads)](https://github.com/aandrew-me/ytDownloader/releases)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/aandrew-me/ytdownloader?label=latest%20release)](https://github.com/aandrew-me/ytDownloader/releases/latest)
[![Flathub](https://img.shields.io/flathub/v/io.github.aandrew_me.ytdn)](https://beta.flathub.org/apps/io.github.aandrew_me.ytdn)

@ -200,6 +200,10 @@ ipcMain.on("load-win", (event, file) => {
win.loadFile(file);
});
ipcMain.on("load-page", (event, file) => {
let isTransparent = false;
if (process.platform == "linux") {
isTransparent = true;
}
secondaryWindow = new BrowserWindow({
webPreferences: {
nodeIntegration: true,
@ -208,7 +212,7 @@ ipcMain.on("load-page", (event, file) => {
parent: win,
modal: true,
show: false,
transparent: true
transparent: isTransparent
});
secondaryWindow.loadFile(file);
secondaryWindow.setMenu(null);

Loading…
Cancel
Save