From c243458110626340b0c7ef6f36f4e1d1cf005f56 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Wed, 13 Oct 2021 07:02:59 -0700 Subject: [PATCH] Move thumbnailClip back to resize --- src/main.dev.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main.dev.js b/src/main.dev.js index 98340b8..74f59a7 100644 --- a/src/main.dev.js +++ b/src/main.dev.js @@ -234,6 +234,16 @@ const createWindow = async () => { } }); + mainWindow.on('resize', () => { + // Set the current song image as thumbnail + mainWindow.setThumbnailClip({ + x: 15, + y: mainWindow.getContentSize()[1] - 83, + height: 65, + width: 65, + }); + }); + mainWindow.on('resized', () => { const window = mainWindow.getContentBounds();