Skip to content

Reload help pages on help refresh#1188

Merged
ManuelHentschel merged 1 commit intomasterfrom
refreshHelp
Sep 4, 2022
Merged

Reload help pages on help refresh#1188
ManuelHentschel merged 1 commit intomasterfrom
refreshHelp

Conversation

@ManuelHentschel
Copy link
Copy Markdown
Member

This PR adds a refresh() method to the HelpPanel class that reloads the currently shown help page (and marks cached history entries as stale). This method is now called as part of the Clear Cache & Restart Help Server command meaning that is no longer necessary to manually close and re-open help pages after installed packages change.

How to test:
Open a help page for package X, install a different version of X, click Clear Cache & Restart Help Server (this might not even be necessary if the code in helpServer.R notices the change), check that the shown help page updates.

Copy link
Copy Markdown
Member

@renkun-ken renkun-ken left a comment

Choose a reason for hiding this comment

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

Works nicely! LGTM

@ManuelHentschel ManuelHentschel merged commit e7b60a7 into master Sep 4, 2022
@ManuelHentschel ManuelHentschel deleted the refreshHelp branch September 4, 2022 06:09
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