Skip to content

Commit

Permalink
Fixed bugs on Win10
Browse files Browse the repository at this point in the history
  • Loading branch information
xianfei committed Jul 31, 2023
1 parent 16cac89 commit 318500c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ function createWindow() {
}

function createModelViewerWindow(args) {
if (args.useGlass && platform === "win32" && isWin11!==null) {
if(!isWin11) args.useGlass = false;
}
// Create the browser window.
var myBrowserWindow = BrowserWindow;
var addtionalArgs = { backgroundColor: "#eee" };
Expand Down Expand Up @@ -324,7 +327,6 @@ function createModelViewerWindow(args) {

if (args.useGlass && platform === "win32" && isWin11!==null) {
if(isWin11) viewer.setMicaAcrylicEffect(); // Acrylic for windows 11
else viewer.setAcrylic();
}

viewer.webContents.once('dom-ready', () => {
Expand Down

0 comments on commit 318500c

Please sign in to comment.