Skip to content

Commit 210c451

Browse files
committed
Fixed plugin not actually deleting
1 parent afb8f61 commit 210c451

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

LiveWriterPluginManager/Services/LiveWriterService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void DeletePlugin(Plugin plugin)
6161
return;
6262
}
6363

64-
_liveWriterPluginsRegistryKey.DeleteSubKey(plugin.Name);
64+
_liveWriterPluginsRegistryKey.DeleteValue(plugin.Name, false);
6565

6666
var file = new FileInfo(plugin.Path);
6767
var path = file.Directory;

LiveWriterPluginManager/ViewModel/PluginViewModel.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using GalaSoft.MvvmLight;
1+
using System;
2+
using GalaSoft.MvvmLight;
23
using GalaSoft.MvvmLight.Command;
34
using GalaSoft.MvvmLight.Messaging;
45
using LiveWriterPluginManager.Helpers;
@@ -45,9 +46,9 @@ public RelayCommand DeletePluginCommand
4546

4647
await _messageService.ShowMessageAsync("Plugin deleted.");
4748
}
48-
catch
49+
catch (Exception ex)
4950
{
50-
51+
var i = 1;
5152
}
5253
}
5354
});

0 commit comments

Comments
 (0)