Skip to content

Commit

Permalink
Fix: [Feature Request] Make CMD+Shift+I smoother #432
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyChen777 committed Mar 19, 2024
1 parent 8713d92 commit 1059e96
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions app/main/services/window-process-management-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@ export class WindowProcessManagementService extends Eventable<IWindowProcessMana
}

createQuickpasteRenderer() {
this.create(
"quickpasteProcess",
{
const options: WindowOptions = {
entry: "app/index_quickpaste.html",
title: "Quickpaste",
width: 600,
Expand All @@ -223,17 +221,18 @@ export class WindowProcessManagementService extends Eventable<IWindowProcessMana
vibrancy: "sidebar",
visualEffectState: "active",
show: false,
},
}
if (os.platform() === "darwin") {
options["type"] = "panel";
}

this.create(
"quickpasteProcess",
options,
{
blur: (win: BrowserWindow) => {
win.setSize(600, 76);
if (os.platform() === "darwin") {
win.hide();
app.hide();
} else {
win.minimize();
win.hide();
}
win.hide();
},

focus: (win: BrowserWindow) => {
Expand Down Expand Up @@ -528,4 +527,4 @@ export class WindowProcessManagementService extends Eventable<IWindowProcessMana
this.browserWindows.get(windowId).blur();
}
}
}
}

0 comments on commit 1059e96

Please sign in to comment.