Skip to content

Add button to refresh tool windows #7633

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

Merged
merged 5 commits into from
Sep 3, 2024

Conversation

helin24
Copy link
Member

@helin24 helin24 commented Aug 29, 2024

Fixes #7617

In my first pass, I'm having trouble finding the right IntelliJ/Java API that would allow us to attach a refresh action to only one tab within a tool window (for example, if there are multiple apps running, there will be an inspector tab for each app). So I'll probably try to land this as refreshing all tabs in a tool window for now.

I also can't find how to add the action to the menu (toolWindow.setAdditionalGearActions seems like the obvious method, but didn't work), so I just made it a separate button. I figure that's more visible anyway:

Screenshot 2024-08-29 at 1 05 24 PM

I'm going to open a separate issue to further discuss multiple app / multiple tab per tool window situations.

@helin24 helin24 requested a review from jwren August 30, 2024 16:04
@helin24 helin24 force-pushed the tool-window-refresh branch from b49643d to 7e66ebc Compare September 3, 2024 17:02
@helin24 helin24 merged commit 6dff1f5 into flutter:master Sep 3, 2024
8 checks passed
@helin24 helin24 deleted the tool-window-refresh branch September 3, 2024 17:46
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.

Add an option to reload a tool window tab
2 participants