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

Fixed #910 Search results just disappear when switching to other app and back #947

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

Conversation

buddax2
Copy link
Contributor

@buddax2 buddax2 commented Jun 26, 2019

Default behavior for the outline view is to set the current target groups to the active document. But this action resets search results and this behavior is OK I suppose. So I assume there is no needs to update current target groups in the document if it didn't change.

Copy link
Member

@mstarke mstarke left a comment

Choose a reason for hiding this comment

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

I'm not sure this is the right way to fix this since it's raising other issues

@@ -221,7 +221,9 @@ - (void)_didBecomeFirstResponder:(NSNotification *)notification {
return; // Nothing we need to worry about
}
MPDocument *document = self.windowController.document;
document.selectedGroups = self.currentTargetGroups;
if (document.selectedGroups != self.currentTargetGroups) {
Copy link
Member

Choose a reason for hiding this comment

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

This fixed the issue of an unexpected exit of search but raises another. When a user clicks inside the outline view and selects the currently selected group this wont show up in the inspector. Instead another group needs to be selected and the the old on should be re-selected. It might be usefull to go a special route just if search is active

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

2 participants