fix: main window gaining upon widget click
This commit is contained in:
parent
1c037a26bc
commit
d45c29766e
2 changed files with 3 additions and 0 deletions
|
|
@ -302,6 +302,7 @@ export class AppManager {
|
|||
}
|
||||
|
||||
async handleActivate(): Promise<void> {
|
||||
logger.main.info("Handle activate called");
|
||||
// If onboarding is in progress, just focus that window
|
||||
const onboardingWindow = this.windowManager.getOnboardingWindow();
|
||||
if (onboardingWindow && !onboardingWindow.isDestroyed()) {
|
||||
|
|
|
|||
|
|
@ -164,6 +164,8 @@ export class WindowManager {
|
|||
skipTaskbar: true,
|
||||
focusable: false,
|
||||
hasShadow: false,
|
||||
// prevent main window from gaining focus upon clicks on widget
|
||||
...(process.platform === "darwin" && { type: "panel" }),
|
||||
webPreferences: {
|
||||
preload: path.join(__dirname, "preload.js"),
|
||||
nodeIntegration: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue