Skip to content

Commit b31fddd

Browse files
authored
Merge pull request #481 from Flow-Launcher/everythingplugin_backwards_compatibility
Add backwards compatibility for Everything plugin v1.4.9
2 parents 6b3f2e2 + 644be79 commit b31fddd

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
using System.Threading.Tasks;
88
using Flow.Launcher.Infrastructure;
99
using Flow.Launcher.Infrastructure.Logger;
10-
using Flow.Launcher.Infrastructure.Storage;
1110
using Flow.Launcher.Infrastructure.UserSettings;
1211
using Flow.Launcher.Plugin;
12+
using ISavable = Flow.Launcher.Plugin.ISavable;
1313

1414
namespace Flow.Launcher.Core.Plugin
1515
{
@@ -51,6 +51,7 @@ public static void Save()
5151
var savable = plugin.Plugin as ISavable;
5252
savable?.Save();
5353
}
54+
5455
API.SavePluginSettings();
5556
}
5657

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using System;
2+
3+
namespace Flow.Launcher.Infrastructure.Storage
4+
{
5+
[Obsolete("Deprecated as of Flow Launcher v1.8.0, on 2021.06.21. " +
6+
"This is used only for Everything plugin v1.4.9 or below backwards compatibility")]
7+
public interface ISavable : Plugin.ISavable { }
8+
}

Flow.Launcher.Infrastructure/Storage/JsonStorage.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,8 @@ public void Save()
8787
File.WriteAllText(FilePath, serialized);
8888
}
8989
}
90+
91+
[Obsolete("Deprecated as of Flow Launcher v1.8.0, on 2021.06.21. " +
92+
"This is used only for Everything plugin v1.4.9 or below backwards compatibility")]
93+
public class JsonStrorage<T> : JsonStorage<T> where T : new() { }
9094
}

Flow.Launcher.Infrastructure/Storage/PluginJsonStorage.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ public PluginJsonStorage(T data) : this()
2222
}
2323
}
2424
}
25+

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using Flow.Launcher.Storage;
2121
using Flow.Launcher.Infrastructure.Logger;
2222
using System.Threading.Channels;
23+
using ISavable = Flow.Launcher.Plugin.ISavable;
2324

2425
namespace Flow.Launcher.ViewModel
2526
{

0 commit comments

Comments
 (0)