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

Inactivate find actions when no current doc #1251

Merged
merged 6 commits into from
Jan 23, 2023
Merged

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Jan 20, 2023

Fixes #1248
Fixes #1210

  • Guard against null current doc
  • Disable action (insensitive button) when no docs
  • Permit search in active project when no docs open

@jeremypw jeremypw changed the title Check for null doc in action_find_global Inactivate find actions when no current doc Jan 20, 2023
@ryonakano
Copy link
Contributor

Thank you for working on this issue!

You might be already noticed, but with this branch we can't perform "Find in Project…" when some project open but no docs open:

VirtualBox_elementary OS 7 Daily_21_01_2023_08_50_46

@jeremypw
Copy link
Collaborator Author

@ryonakano I think the same restriction applies in master doesn't it? However, I can try and lift it here if you like.

@jeremypw
Copy link
Collaborator Author

@ryonakano Fairly simple to fix that restriction. Marking ready for review now.

@jeremypw jeremypw marked this pull request as ready for review January 21, 2023 16:36
@jeremypw jeremypw requested a review from a team January 22, 2023 12:58
@danirabbit danirabbit enabled auto-merge (squash) January 23, 2023 17:26
@danirabbit danirabbit merged commit 9e9c3ef into master Jan 23, 2023
@danirabbit danirabbit deleted the fix-findinproject-crash branch January 23, 2023 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants