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

Drop dead feature that disables unsafe paste warning while Terminal opens #803

Merged
merged 3 commits into from
Nov 9, 2024

Conversation

ryonakano
Copy link
Contributor

@ryonakano ryonakano commented Nov 8, 2024

This PR removes the dead feature that disables unsafe paste warning while Terminal opens.


As far as reading the code of UnsafePasteDialog.vala, this dialog shouldn't appear again while the current Terminal window is alive once if the user clicks "Paste Anyway". However, this isn't working at the moment because the clicked event of the "Paste Anyway" button is treated as a response of UnsafePasteDialog and the on_ignore () method is not triggered at all.

On the other hand, however, I also feels the current "unintentional" behavior that this dialog always appears when pasting administrative commands makes sense too. We can now toggle unsafe paste warning from preferences menu,
so this dead feature is useless. Therefore, I just dropped the dead feature instead of correctly implementing it in favor of current "unintentional" behavior.

@ryonakano ryonakano added the Needs Design Waiting for input from the UX team label Nov 8, 2024
@ryonakano ryonakano requested a review from a team November 8, 2024 13:39
@jeremypw
Copy link
Collaborator

jeremypw commented Nov 8, 2024

I think now we have the toggle in the App menu to control the unsafe warning we do not need this additional check in the dialog.

We can now toggle unsafe paste warning from prerferences menu,
so this feature that prevents unsafe paste warning from being shown
just during the session is useless.
@ryonakano ryonakano changed the title UnsafePasteDialog: Fix unsafe_ignored flag being a dead code Drop dead feature that disables unsafe paste warning while Terminal opens Nov 8, 2024
@ryonakano
Copy link
Contributor Author

@jeremypw Thank you for your opinion. I agree with you and perform changes to drop this dead feature.

Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

Does what it says on the tin.

I am not sure we even need the CheckButton either but that can be left for further consideration.

@jeremypw jeremypw merged commit f1148c6 into master Nov 9, 2024
4 checks passed
@jeremypw jeremypw deleted the ryonakano/fix-dead-unsafe-ignored-flag branch November 9, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Design Waiting for input from the UX team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants