Skip to content

Conversation

matthme
Copy link
Contributor

@matthme matthme commented Aug 21, 2024

Replaces #201

@matthme matthme requested a review from c12i August 21, 2024 08:50
@matthme matthme mentioned this pull request Aug 21, 2024
const mainWindow = PRIVILEDGED_LAUNCHER_WINDOWS[MAIN_WINDOW];
const [xMain, yMain] = mainWindow.getPosition();
const settingsWindow = PRIVILEDGED_LAUNCHER_WINDOWS[SETTINGS_WINDOW];
if (!settingsWindow) throw new Error('Settings window is undefined.');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, the settingsWindow remains undefined until the show method is called right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it should already be defined here as it is being created as part of the setupAppWindows function (in this PR again, this was not the case in #201) .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.show() only makes it be visible and come to front on the screen. The BrowserWindow javascript object is already defined before that.

@matthme matthme merged commit 6d6192d into develop Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants