Skip to content

Preventing the removal of window on close #24

Description

@tterb

Hey jprichardson,
I've been utilizing your package on an app that I've been developing, though I've run into an issue when trying to add a dialog that prompts the user if there are unsaved changes in a window.
I've managed to get everything working properly by adding the logic to close event listener, though it appears that at that point electron-window has already removed the window reference.

Is there a way to preserve the reference until after the close event is emitted or restore the window reference without creating a totally new window?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions