Skip to content

Commit a43af5f

Browse files
committed
Fixes cropper window size update
1 parent 29f18cc commit a43af5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ ipcMain.on('open-cropper-window', (event, size) => {
8585
if (cropperWindow) {
8686
cropperWindow.focus();
8787
} else {
88-
const {width = size.width, height = size.height} = settings.get('cropperWindow.size');
88+
let {width = 512, height = 512} = settings.get('cropperWindow.size');
89+
width = size.width || width;
90+
height = size.height || height;
8991
const {x, y} = settings.get('cropperWindow.position');
9092
cropperWindow = new BrowserWindow({
9193
width: width + cropperWindowBuffer,

0 commit comments

Comments
 (0)