fix method for windows
This commit is contained in:
parent
427be2a293
commit
995d4d014e
@ -91,7 +91,9 @@ function createFeatureWindows(header) {
|
|||||||
});
|
});
|
||||||
listen.setContentProtection(isContentProtectionOn);
|
listen.setContentProtection(isContentProtectionOn);
|
||||||
listen.setVisibleOnAllWorkspaces(true,{visibleOnFullScreen:true});
|
listen.setVisibleOnAllWorkspaces(true,{visibleOnFullScreen:true});
|
||||||
listen.setWindowButtonVisibility(false);
|
if (process.platform === 'darwin') {
|
||||||
|
listen.setWindowButtonVisibility(false);
|
||||||
|
}
|
||||||
const listenLoadOptions = { query: { view: 'listen' } };
|
const listenLoadOptions = { query: { view: 'listen' } };
|
||||||
if (!shouldUseLiquidGlass) {
|
if (!shouldUseLiquidGlass) {
|
||||||
listen.loadFile(path.join(__dirname, '../app/content.html'), listenLoadOptions);
|
listen.loadFile(path.join(__dirname, '../app/content.html'), listenLoadOptions);
|
||||||
@ -120,7 +122,9 @@ function createFeatureWindows(header) {
|
|||||||
const ask = new BrowserWindow({ ...commonChildOptions, width:600 });
|
const ask = new BrowserWindow({ ...commonChildOptions, width:600 });
|
||||||
ask.setContentProtection(isContentProtectionOn);
|
ask.setContentProtection(isContentProtectionOn);
|
||||||
ask.setVisibleOnAllWorkspaces(true,{visibleOnFullScreen:true});
|
ask.setVisibleOnAllWorkspaces(true,{visibleOnFullScreen:true});
|
||||||
ask.setWindowButtonVisibility(false);
|
if (process.platform === 'darwin') {
|
||||||
|
ask.setWindowButtonVisibility(false);
|
||||||
|
}
|
||||||
const askLoadOptions = { query: { view: 'ask' } };
|
const askLoadOptions = { query: { view: 'ask' } };
|
||||||
if (!shouldUseLiquidGlass) {
|
if (!shouldUseLiquidGlass) {
|
||||||
ask.loadFile(path.join(__dirname, '../app/content.html'), askLoadOptions);
|
ask.loadFile(path.join(__dirname, '../app/content.html'), askLoadOptions);
|
||||||
@ -154,7 +158,9 @@ function createFeatureWindows(header) {
|
|||||||
const settings = new BrowserWindow({ ...commonChildOptions, width:240, maxHeight:400, parent:undefined });
|
const settings = new BrowserWindow({ ...commonChildOptions, width:240, maxHeight:400, parent:undefined });
|
||||||
settings.setContentProtection(isContentProtectionOn);
|
settings.setContentProtection(isContentProtectionOn);
|
||||||
settings.setVisibleOnAllWorkspaces(true,{visibleOnFullScreen:true});
|
settings.setVisibleOnAllWorkspaces(true,{visibleOnFullScreen:true});
|
||||||
settings.setWindowButtonVisibility(false);
|
if (process.platform === 'darwin') {
|
||||||
|
settings.setWindowButtonVisibility(false);
|
||||||
|
}
|
||||||
const settingsLoadOptions = { query: { view: 'settings' } };
|
const settingsLoadOptions = { query: { view: 'settings' } };
|
||||||
if (!shouldUseLiquidGlass) {
|
if (!shouldUseLiquidGlass) {
|
||||||
settings.loadFile(path.join(__dirname,'../app/content.html'), settingsLoadOptions)
|
settings.loadFile(path.join(__dirname,'../app/content.html'), settingsLoadOptions)
|
||||||
@ -315,7 +321,9 @@ function createWindows() {
|
|||||||
webSecurity: false,
|
webSecurity: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
header.setWindowButtonVisibility(false);
|
if (process.platform === 'darwin') {
|
||||||
|
header.setWindowButtonVisibility(false);
|
||||||
|
}
|
||||||
const headerLoadOptions = {};
|
const headerLoadOptions = {};
|
||||||
if (!shouldUseLiquidGlass) {
|
if (!shouldUseLiquidGlass) {
|
||||||
header.loadFile(path.join(__dirname, '../app/header.html'), headerLoadOptions);
|
header.loadFile(path.join(__dirname, '../app/header.html'), headerLoadOptions);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user