You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Opening a template then save should not save to template path
Short cut key combo Ctrl + T does not work yet (changed to Ctrl+Shift+O as per VS standards for open menu)
Unit tests
This PR:
adds a new hotkey to open templates: Ctrl+Shift+O (FYI @Amoursol, Ctrl+T has a conflict)
adds the template location as a preference setting, can be updated or reset by the user.
When saving a file opened from template the save dialog will be pointed to the last accessed location by the user that is not the templates directory, if null, will be redirected to Desktop.
(In the screen capture below, the template is opened on first use, some changes are made and while saving the last accessed location was null, so Desktop was the default location)
When opening a graph after opening a template, the open dialog will
open the file dialog at the current file's directory, if saved
else, open the samples directory, if available
else , open the last accessed path (or desktop, if it was the templates directory)
(In the screen capture below, a file is opened from a random location, then a template is opened, after some changes while saving the template, the last accessed location is opened by default, not the template directory)
zeusongit
changed the title
WIP - DYN-6653 Create new workspace based on Templates - Part II
DYN-6653 Create new workspace based on Templates - Part II
Feb 28, 2024
4 Errors in the API checks D:\a\Dynamo\Dynamo\Dynamo\src\DynamoCoreWpf\PublicAPI.Unshipped.txt(4014,1): error RS0017: Symbol 'Dynamo.Wpf.Views.Debug.UpdateNodeIconsWindow.errorFile -> string' is part of the declared API, but is either not public or could not be found (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md) [D:\a\Dynamo\Dynamo\Dynamo\src\DynamoCoreWpf\DynamoCoreWpf.csproj] D:\a\Dynamo\Dynamo\Dynamo\src\DynamoCoreWpf\PublicAPI.Unshipped.txt(4018,1): error RS0017: Symbol 'Dynamo.Wpf.Views.Debug.UpdateNodeIconsWindow.logFile -> string' is part of the declared API, but is either not public or could not be found (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md) [D:\a\Dynamo\Dynamo\Dynamo\src\DynamoCoreWpf\DynamoCoreWpf.csproj] D:\a\Dynamo\Dynamo\Dynamo\src\DynamoCoreWpf\PublicAPI.Unshipped.txt(4039,1): error RS0017: Symbol 'Dynamo.Wpf.Views.Debug.UpdateNodeIconsWindow.OnPropertyChanged(string propertyName) -> void' is part of the declared API, but is either not public or could not be found (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md) [D:\a\Dynamo\Dynamo\Dynamo\src\DynamoCoreWpf\DynamoCoreWpf.csproj] D:\a\Dynamo\Dynamo\Dynamo\src\DynamoCoreWpf\PublicAPI.Unshipped.txt(5557,1): error RS0017: Symbol 'static readonly Dynamo.Wpf.Views.Debug.UpdateNodeIconsWindow.logPath -> string' is part of the declared API, but is either not public or could not be found (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md) [D:\a\Dynamo\Dynamo\Dynamo\src\DynamoCoreWpf\DynamoCoreWpf.csproj]
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
ToDo:
Short cut key combo Ctrl + T does not work yet(changed to Ctrl+Shift+O as per VS standards for open menu)This PR:
adds a new hotkey to open templates:
Ctrl+Shift+O
(FYI @Amoursol, Ctrl+T has a conflict)adds the template location as a preference setting, can be updated or reset by the user.

When saving a file opened from template the save dialog will be pointed to the last accessed location by the user that is not the templates directory, if null, will be redirected to Desktop.

(In the screen capture below, the template is opened on first use, some changes are made and while saving the last accessed location was null, so Desktop was the default location)
When opening a graph after opening a template, the open dialog will
(In the screen capture below, a file is opened from a random location, then a template is opened, after some changes while saving the template, the last accessed location is opened by default, not the template directory)

Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Reviewers
@DynamoDS/dynamo