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

Usability: Added a "Preferences" button to "Manage Nuget Packages" window. #317

Conversation

UnquotidianVi
Copy link
Contributor

Added a "Preferences" button next to the "Refresh" button in "Manage Nuget Packages" window. When the button is pressed, it opens "Preferences/NuGet For Unity" window and closes the "Manage Nuget Packages" window. I decided to close the Manage window because most of the Preference options require the Manage window to be refreshed.

Fixes #232

@UnquotidianVi
Copy link
Contributor Author

UnquotidianVi commented Dec 11, 2019

SettingsService.OpenUserPreferences() is only supported in 2018.3 or newer. We can still use EditorApplication.ExecuteMenuItem("Edit/Preferences..."); on older versions, but this doesn't allow us to open the specific Preference menus.

@UnquotidianVi
Copy link
Contributor Author

I hadn't realized that the Preferences button only showed up on the 'Online' -tab. Everything should be ready for review now. 👍

@JoC0de JoC0de force-pushed the add-preferences-button-to-manage-packages-window branch from f29431b to 6fe75ad Compare January 8, 2023 20:16
@JoC0de
Copy link
Collaborator

JoC0de commented Jan 8, 2023

I rebased ad reformatted your code. It works 👍
So thank you @UnquotidianVi for the improvement.

@JoC0de JoC0de merged commit 6b5fe6f into GlitchEnzo:master Jan 8, 2023
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 'Preferences -> NuGet For Unity' button to 'Manage NuGet Packages' UI
2 participants