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

codenav: Keep "Go to file" dialog open after denying creation of file that wasn't found #1329

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gkatev
Copy link
Contributor

@gkatev gkatev commented Apr 17, 2024

Previously, if the file wasn't found and you replied 'no' to the prompt for creating it, all dialogs closed. This can be annoying in situations where the name/path was entered wrong, and you have to start all over again after receiving the file not found error. This commit allows one to amend the mistake from right where they left off.

Demo before:

codenav_goto_before.mp4

Demo after:

codenav_goto_after.mp4

Previously, if the file wasn't found and you replied 'no' to the prompt
for creating it, all dialogs closed. This can be annoying in situations
where the name/path was entered wrong, and you have to start all over
again after receiving the file not found error. This commit allows one
to amend the mistake from right where they left off.

It was deemed necessary to add GTK_DIALOG_MODAL flag to the dialog creation.
Without it, after the repeat gtk_dialog_run call (through the goto), the UI
got kinda bugged, with the focus (correctly) being in the dialog, but visually
appearing as if it had shifted back to the editor pane.
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.

None yet

1 participant