mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 02:07:31 +08:00
feat(electron): set window minimum size (closes #994)
This commit is contained in:
parent
d8a1852935
commit
3e5bd01fc1
1 changed files with 3 additions and 1 deletions
|
|
@ -156,6 +156,8 @@ async function createMainWindow(app: App) {
|
|||
y: mainWindowState.y,
|
||||
width: mainWindowState.width,
|
||||
height: mainWindowState.height,
|
||||
minWidth: 500,
|
||||
minHeight: 400,
|
||||
title: "TriliumNext Notes",
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
|
|
@ -185,7 +187,7 @@ async function createMainWindow(app: App) {
|
|||
if (lastFocusedWindow.isMinimized()) {
|
||||
lastFocusedWindow.restore();
|
||||
}
|
||||
lastFocusedWindow.show();
|
||||
lastFocusedWindow.show();
|
||||
lastFocusedWindow.focus();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue