-
Notifications
You must be signed in to change notification settings - Fork 635
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
move package search paths to preferences settings #11762
Conversation
remove unusued setter add property for packagePathsViewModel to prefsViewModel construct packpathsVMwhen creating prefsVM add item template, button, and itemcontrol first draft
rename property for viewmodel make internal commands work for ints or string paths temporarily fix for making packagepathsview a usercontrol - will remove this code when done use new control in prefs modify packagePathView deal with the fact that dataContext for packagePathView will be late bound and will change from null to PackagePathViewModel. this currently will add and remove paths correctly - other commands are not modified yet, no data is saved to prefs xml on dynamo close - and package reload is not implemented on prefs close yet.
convert paths to indices before calling internal command implementations add namespace for packages hook up command bindings for each button to pass path as parameter - bind to packagepathViewModel remove old code from packagePathView for selection we no longer need
scroll bar bigger area
remove unused static var save packages and load them on prefs close use datatrigger to grey out disabled paths
fix tests
<TextBlock | ||
Text="{Binding}" | ||
FontSize="14" | ||
FontWeight="Medium"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will probably do something once we change all the fonts to Artifakt.
obsolete dialog raise events and request methods remove event subscription
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mjkkirschner are the packages reloaded even when there is no change to the package paths? What about when some other tab other than the "package manager" tab of the preferences dialog is opened? |
src/DynamoCoreWpf/ViewModels/PackageManager/PackagePathViewModel.cs
Outdated
Show resolved
Hide resolved
src/DynamoCoreWpf/ViewModels/PackageManager/PackagePathViewModel.cs
Outdated
Show resolved
Hide resolved
yes, and yes - I've mentioned this in the description of this pr. |
Purpose
This PR moves the node and package dialog to the package prefs settings dialog.
PackagePathView
andPackagePathViewModel
are reused but heavily modified.RemoveStyleButtonStyle
template toFlatIconButtonStyle
.RootLocations
property of thePackagePathViewModel
.Feedback requested
TODO
This screenshot shows what happens if we turn on the hidden DisableCustomPackagePaths flag.
Declarations
Check these if you believe they are true
*.resx
files