feat: refactoring notification window

This commit is contained in:
Zamitto
2024-10-02 18:01:58 -03:00
parent d5b1bcdc7f
commit beaa919c80
7 changed files with 17 additions and 15 deletions

View File

@@ -85,12 +85,6 @@ export const mergeAchievements = async (
shop,
achievementsInfo
);
WindowManager.notificationWindow?.setBounds({ y: 50 });
setTimeout(() => {
WindowManager.notificationWindow?.setBounds({ y: -9999 });
}, 4000);
}
const mergedLocalAchievements = unlockedAchievements.concat(newAchievements);

View File

@@ -104,19 +104,21 @@ export class WindowManager {
maximizable: false,
autoHideMenuBar: true,
minimizable: false,
focusable: true,
focusable: false,
skipTaskbar: true,
frame: false,
width: 240,
height: 60,
x: 25,
y: -9999,
y: 25,
webPreferences: {
preload: path.join(__dirname, "../preload/index.mjs"),
sandbox: false,
},
});
this.notificationWindow.setIgnoreMouseEvents(true);
this.notificationWindow.webContents.openDevTools();
this.notificationWindow.setVisibleOnAllWorkspaces(true, {
visibleOnFullScreen: true,
});