A Swiss Army knife for developers.
C# blazorcross-platformcsharpdesktopdesktop-appdesktop-applicationdeveloper-toolsextensiblefluentfluent-designlinuxmacosmicasyntax-highlightingtypescriptwindowswindows-10windows-11winui
Fixed bug in Smart detection
Etienne Baudoux3a884f00dd8f
diff --git a/src/app/dev/DevToys.Business/ViewModels/MainWindowViewModel.cs b/src/app/dev/DevToys.Business/ViewModels/MainWindowViewModel.csindex 49d3161f2..6bceff817 100644--- a/src/app/dev/DevToys.Business/ViewModels/MainWindowViewModel.cs+++ b/src/app/dev/DevToys.Business/ViewModels/MainWindowViewModel.cs@@ -353,6 +353,12 @@ internal sealed partial class MainWindowViewModel : ObservableRecipient{// Select the actual menu item in the navigation view. This will trigger the navigation.SelectedMenuItem = GetBestMenuItemToSelect(message.Value);++ // If this is not null, it means that the user has selected a tool that has been detected by Smart Detection.+ if (message.SmartDetectionInfo is not null)+ {+ message.Value.PassSmartDetectedData(message.SmartDetectionInfo.DataTypeName, message.SmartDetectionInfo.ParsedData);+ }}[LoggerMessage(1, LogLevel.Warning, "Failed to perform smart detection.")]