move package search paths to preferences settings#11762
Merged
mjkkirschner merged 25 commits intoDynamoDS:masterfrom Jun 22, 2021
Merged
move package search paths to preferences settings#11762mjkkirschner merged 25 commits intoDynamoDS:masterfrom
mjkkirschner merged 25 commits intoDynamoDS:masterfrom
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
mjkkirschner
commented
Jun 17, 2021
mjkkirschner
commented
Jun 17, 2021
| <TextBlock | ||
| Text="{Binding}" | ||
| FontSize="14" | ||
| FontWeight="Medium"> |
Member
Author
There was a problem hiding this comment.
I think this will probably do something once we change all the fonts to Artifakt.
pinzart90
reviewed
Jun 18, 2021
pinzart90
reviewed
Jun 18, 2021
pinzart90
reviewed
Jun 18, 2021
pinzart90
reviewed
Jun 18, 2021
pinzart90
reviewed
Jun 18, 2021
pinzart90
reviewed
Jun 18, 2021
obsolete dialog raise events and request methods remove event subscription
sm6srw
approved these changes
Jun 21, 2021
Contributor
|
@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
Member
Author
yes, and yes - I've mentioned this in the description of this pr. |
aparajit-pratap
approved these changes
Jun 21, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This PR moves the node and package dialog to the package prefs settings dialog.
PackagePathViewandPackagePathViewModelare reused but heavily modified.RemoveStyleButtonStyletemplate toFlatIconButtonStyle.RootLocationsproperty 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
*.resxfiles