mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
CU-kd786e: fix
This commit is contained in:
parent
8a70842f37
commit
ba0ea99125
6 changed files with 21 additions and 13 deletions
|
@ -18,6 +18,7 @@ const openAboutWindow = require('about-window').default;
|
|||
const keytar = require('keytar');
|
||||
const bindings = require('bindings');
|
||||
const envPath = path.join(__dirname, 'electron', 'env.json');
|
||||
const systemVersion = process.getSystemVersion();
|
||||
|
||||
const TIMEOUT_UPDATE = 600 * 1000;
|
||||
const MIN_WIDTH = 752;
|
||||
|
@ -203,6 +204,11 @@ function createWindow () {
|
|||
if (process.platform == 'darwin') {
|
||||
app.dock.setIcon(image);
|
||||
param.icon = path.join(__dirname, '/electron/icon.icns');
|
||||
|
||||
const a = systemVersion.split('.');
|
||||
if (a.length && (a[0] == 11)) {
|
||||
param.trafficLightPosition = { x: 20, y: 36 };
|
||||
};
|
||||
};
|
||||
|
||||
if (process.platform == 'win32') {
|
||||
|
@ -211,7 +217,7 @@ function createWindow () {
|
|||
|
||||
if (process.platform != 'linux') {
|
||||
param.frame = false;
|
||||
param.titleBarStyle = 'hiddenInset';
|
||||
param.titleBarStyle = 'hidden';
|
||||
};
|
||||
|
||||
win = new BrowserWindow(param);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue