mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-31 04:02:26 +08:00
feat(electron): constrain setup window size
This commit is contained in:
parent
3e5bd01fc1
commit
f420b5cbd4
@ -257,9 +257,12 @@ function getIcon() {
|
|||||||
|
|
||||||
async function createSetupWindow() {
|
async function createSetupWindow() {
|
||||||
const { BrowserWindow } = await import("electron"); // should not be statically imported
|
const { BrowserWindow } = await import("electron"); // should not be statically imported
|
||||||
|
const width = 750;
|
||||||
|
const height = 650;
|
||||||
setupWindow = new BrowserWindow({
|
setupWindow = new BrowserWindow({
|
||||||
width: 800,
|
width,
|
||||||
height: 800,
|
height,
|
||||||
|
resizable: false,
|
||||||
title: "TriliumNext Notes Setup",
|
title: "TriliumNext Notes Setup",
|
||||||
icon: getIcon(),
|
icon: getIcon(),
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user