fernandreu / office-ribbonx-editor

An overhauled fork of the original Custom UI Editor for Microsoft Office, built with WPF
MIT License
513 stars 97 forks source link

ArgumentException: Cannot delete a subkey tree because the subkey does not exist. #191

Closed azbo closed 2 years ago

azbo commented 2 years ago

Describe the bug

System.ArgumentException: Cannot delete a subkey tree because the subkey does not exist.
   at Microsoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey, Boolean throwOnMissingSubKey)
   at OfficeRibbonXEditor.ViewModels.Shell.FileAssociationViewModel.Apply() in C:\Users\FernA\agent\_work\1\s\src\OfficeRibbonXEditor\ViewModels\Shell\FileAssociationViewModel.cs:line 59
   at OfficeRibbonXEditor.ViewModels.Dialogs.SettingsDialogViewModel.ApplySettings() in C:\Users\FernA\agent\_work\1\s\src\OfficeRibbonXEditor\ViewModels\Dialogs\SettingsDialogViewModel.cs:line 206
   at OfficeRibbonXEditor.ViewModels.Dialogs.SettingsDialogViewModel.AcceptSettings() in C:\Users\FernA\agent\_work\1\s\src\OfficeRibbonXEditor\ViewModels\Dialogs\SettingsDialogViewModel.cs:line 224

To Reproduce Please describe the steps that lead to the unhandled exception here, including example files if relevant.

Screenshots If applicable, add screenshots to help explain how the unhandled exception occurred.

Additional context