Skip to content

Exit alert ticketbuyer running #1989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Feb 19, 2019

Conversation

szpasztor
Copy link
Contributor

@szpasztor szpasztor commented Jan 16, 2019

Resolves #1923

Tasks

  • alert on app shutdown (clicking red close button in title bar)
  • alert on app shutdown (Cmd+Q)
  • alert on wallet close (in settings menu)
  • prevent & alert when entering suspend mode
  • prevent & alert when on system shutdown
  • log warning

Sorry, something went wrong.

@@ -51,23 +56,13 @@ class App extends React.Component {
this.props.showAboutModalMacOS();
}
});
}

beforeWindowUnload(event) {
Copy link
Contributor Author

@szpasztor szpasztor Jan 16, 2019

Choose a reason for hiding this comment

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

Removed the whole block as it seemed to have no use with the new exit logic. According to this thread, it's not recommended to override this event. It's also undocumented in electron.

@szpasztor
Copy link
Contributor Author

Seems like there's an issue with powerSaveBlocker on macOS, I opened an bug report about it.

@szpasztor
Copy link
Contributor Author

Ready for review.

Copy link
Member

@matheusd matheusd left a comment

Choose a reason for hiding this comment

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

Tested on linux.

Nice touch on removing the beforeWindowReload() event!

@alexlyp alexlyp merged commit c592070 into decred:master Feb 19, 2019
@alexlyp alexlyp changed the title WIP Exit alert ticketbuyer running Exit alert ticketbuyer running Feb 19, 2019
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.

Alert when closing wallet/shutting down that ticket buyer is running
3 participants