Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
Remove windows cover thumbnail (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffvli committed Mar 3, 2022
1 parent ccde70b commit 85f3c22
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/main.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,6 @@ const getAssetPath = (...paths) => {
return path.join(RESOURCES_PATH, ...paths);
};

const createWinThumbnailClip = () => {
if (isWindows()) {
// Set the current song image as thumbnail
mainWindow.setThumbnailClip({
x: 15,
y: mainWindow.getContentSize()[1] - 83,
height: 65,
width: 65,
});
}
};

const stop = () => {
mainWindow.webContents.send('player-stop');
};
Expand Down Expand Up @@ -401,13 +389,6 @@ const createWinThumbarButtons = () => {
},
},
]);

mainWindow.setThumbnailClip({
x: 15,
y: mainWindow.getContentSize()[1] - 83,
height: 65,
width: 65,
});
}
};

Expand Down Expand Up @@ -552,12 +533,6 @@ const createWindow = async () => {
}
});

mainWindow.on('restore', () => {
if (isWindows() && isWindows10()) {
createWinThumbnailClip();
}
});

mainWindow.on('close', (event) => {
if (!exitFromTray && store.getState().config.window.exitToTray) {
event.preventDefault();
Expand All @@ -566,12 +541,9 @@ const createWindow = async () => {
});

if (isWindows()) {
mainWindow.setAppUserModelId(process.execPath);

mainWindow.on('resize', () => {
const window = mainWindow.getContentBounds();

createWinThumbnailClip();
settings.setSync('windowPosition', {
x: window.x,
y: window.y,
Expand Down Expand Up @@ -686,7 +658,6 @@ const createTray = () => {
click: () => {
mainWindow.show();
createWinThumbarButtons();
createWinThumbnailClip();
},
},
{
Expand All @@ -701,7 +672,6 @@ const createTray = () => {
tray.on('double-click', () => {
mainWindow.show();
createWinThumbarButtons();
createWinThumbnailClip();
});

tray.setToolTip('Sonixd');
Expand Down

0 comments on commit 85f3c22

Please sign in to comment.