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

Attempt to remove modal window frame to hide close button on linux #4252

Closed
wants to merge 1 commit into from

Conversation

AlexandreSi
Copy link
Collaborator

Workaround for #4245.
Not sure it will work (not using Linux) so we'll wait for next release.

@AlexandreSi AlexandreSi requested a review from 4ian as a code owner August 31, 2022 09:06
@@ -36,6 +36,10 @@ const loadModalWindow = ({
backgroundColor,
modal: true,
center: true,
// Hide top bar to hide close button (needed on Linux) so that
// one cannot close the modal window without using Save or Cancel
// buttons (and lose work on Piskel for instance) (Workaround for #4245).
Copy link
Collaborator

Choose a reason for hiding this comment

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

The ModalWindow is also used for yarn and jfxr.
Are we sure this removal of the top bar doesn't affect them?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It will affect them and for the same logic: we don't want to exit those modal windows without using the Save or Cancel buttons

Copy link
Collaborator

Choose a reason for hiding this comment

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

If we're happy it doesn't prevent closing the window on all 3 tools, then ok 👍

Copy link
Owner

@4ian 4ian left a comment

Choose a reason for hiding this comment

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

Would be good to check on Windows to see if this prevent moving the window around or maximizing it though. Or maybe just apply this on Linux?

@AlexandreSi AlexandreSi closed this Sep 1, 2022
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.

3 participants