File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Plugins/Flow.Launcher.Plugin.PluginsManager Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 18
18
19
19
<ItemGroup >
20
20
<ProjectReference Include =" ..\..\Flow.Launcher.Infrastructure\Flow.Launcher.Infrastructure.csproj" />
21
+ <ProjectReference Include =" ..\..\Flow.Launcher.Core\Flow.Launcher.Core.csproj" />
21
22
<ProjectReference Include =" ..\..\Flow.Launcher.Plugin\Flow.Launcher.Plugin.csproj" />
22
23
</ItemGroup >
23
24
Original file line number Diff line number Diff line change 1
1
using Flow . Launcher . Infrastructure ;
2
2
using Flow . Launcher . Infrastructure . Http ;
3
3
using Flow . Launcher . Infrastructure . Logger ;
4
+ using Flow . Launcher . Infrastructure . Storage ;
4
5
using Flow . Launcher . Infrastructure . UserSettings ;
5
6
using Flow . Launcher . Plugin . PluginsManager . Models ;
7
+ using Flow . Launcher . Plugin . PluginsManager . ViewModels ;
6
8
using Flow . Launcher . Plugin . SharedCommands ;
7
9
using System ;
8
10
using System . Collections . Generic ;
@@ -400,6 +402,12 @@ internal List<Result> RequestUninstall(string search)
400
402
401
403
private void Uninstall ( PluginMetadata plugin )
402
404
{
405
+
406
+
407
+ Core . Plugin . PluginManager . Settings . Plugins . Remove ( plugin . ID ) ;
408
+ Core . Plugin . PluginManager . AllPlugins . RemoveAll ( p => p . Metadata . ID == plugin . ID ) ;
409
+
410
+
403
411
// Marked for deletion. Will be deleted on next start up
404
412
using var _ = File . CreateText ( Path . Combine ( plugin . PluginDirectory , "NeedDelete.txt" ) ) ;
405
413
}
You can’t perform that action at this time.
0 commit comments