Skip to content

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

Open
buddax2 wants to merge 1 commit intoMacPass:masterfrom
buddax2:search-cancelation2
Open

Fixed #910 Search results just disappear when switching to other app and back#947
buddax2 wants to merge 1 commit intoMacPass:masterfrom
buddax2:search-cancelation2

Conversation

@buddax2
Copy link
Copy Markdown
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
Copy Markdown
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

}
MPDocument *document = self.windowController.document;
document.selectedGroups = self.currentTargetGroups;
if (document.selectedGroups != self.currentTargetGroups) {
Copy link
Copy Markdown
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.

2 participants