Skip to content

Commit

Permalink
SDA-4675 - Remove move top
Browse files Browse the repository at this point in the history
  • Loading branch information
KiranNiranjan committed Oct 1, 2024
1 parent 9558aa1 commit 001a7e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/renderer/notification-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export default class NotificationHandler {
if (window && !window.isDestroyed()) {
try {
window.setPosition(parseInt(String(x), 10), parseInt(String(y), 10));
window.moveTop();
} catch (err) {
console.warn(
`Failed to set window position. x: ${x} y: ${y}. Contact the developers for more details`,
Expand Down
3 changes: 0 additions & 3 deletions src/renderer/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,6 @@ class Notification extends NotificationHandler {
notificationSettings.height,
true,
);
// Move notification to top
notificationWindow.moveTop();

if (!data.sticky) {
timeoutId = setTimeout(async () => {
Expand Down Expand Up @@ -590,7 +588,6 @@ class Notification extends NotificationHandler {
windowId: notificationWindow.id,
});
this.activeNotifications.push(notificationWindow);
notificationWindow.moveTop();
}

/**
Expand Down

0 comments on commit 001a7e6

Please sign in to comment.