Skip to content
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

electron: Fix path comparison for exit confirmation #10597

Merged
merged 1 commit into from
Jan 10, 2022

Conversation

msujew
Copy link
Member

@msujew msujew commented Jan 5, 2022

What it does

Closes #10596

Before testing for includes, we replace all backwards slashes with forward slashes.

How to test

  1. Start the electron App on Windows.
  2. Set the application.confirmExit preference to always.
  3. Exit the application and assert that a confirmation dialog appears.

Review checklist

Reminder for reviewers

@msujew msujew added electron issues related to the electron target OS/Windows issues related to the Windows OS labels Jan 5, 2022
Copy link
Contributor

@colin-grant-work colin-grant-work left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me, but I'm temporarily without a Windows environment for testing. @vince-fugnitto, @paul-marechal, are you able to run in Windows?

@msujew msujew force-pushed the msujew/fix-electron-exit-win branch from 97029e7 to 78da47e Compare January 5, 2022 19:01
@msujew msujew merged commit 52a6529 into master Jan 10, 2022
@msujew msujew deleted the msujew/fix-electron-exit-win branch January 10, 2022 12:04
@vince-fugnitto vince-fugnitto added this to the 1.22.0 milestone Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electron issues related to the electron target OS/Windows issues related to the Windows OS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Electron window does never confirm exit (Windows)
4 participants