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

winget now has the ability to pin package versions, so I should add menu items to pin, unpin, and list pinned packages. #168

Open
DrewNaylor opened this issue Jun 8, 2023 · 1 comment

Comments

@DrewNaylor
Copy link
Owner

This'll probably be designed like Synaptic, much like most of the rest of the UI. Pinning packages will be done separately from marking packages for install/uninstall/etc.

@DrewNaylor
Copy link
Owner Author

Actually, the way I can do this is by having "Pin package..." and "Unpin package..." items in the package context menu and the menubar menu, which both open a window listing the package the user is requesting to pin or unpin and its version with a button to confirm.

There can also be a "View>Pinned packages..." window that displays the packages that are pinned and allows the user to manually pin packages by typing their ID and Version into textboxes. Getting the list in a usable way will require the PowerShell commandlets so I can properly show them in a DataGridView. We'll also allow unpinning multiple packages at once in that window.

I'm not allowing pinning multiple packages at once because I don't know what would happen if you pin multiple versions of the same package. If someone wants it, maybe I could add that into the main system with the "Action" column. This is supposed to be an advanced UI like Synaptic is, after all, so I would hope users know what they're doing. I'm still going to ensure it's easy for beginners to use it, unlike programs that are more egotistical and like "oh, you don't understand where to start? too bad. get gud."

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

No branches or pull requests

1 participant