Skip to content

Commit baef9dd

Browse files
committed
Expose ISaveable interface in derived class to make sure we are calling the new version of Save method
1 parent 9d3888f commit baef9dd

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Flow.Launcher.Infrastructure/Storage/FlowLauncherJsonStorage.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
using System.Threading.Tasks;
33
using Flow.Launcher.Infrastructure.Logger;
44
using Flow.Launcher.Infrastructure.UserSettings;
5+
using Flow.Launcher.Plugin;
56
using Flow.Launcher.Plugin.SharedCommands;
67

78
namespace Flow.Launcher.Infrastructure.Storage
89
{
9-
public class FlowLauncherJsonStorage<T> : JsonStorage<T> where T : new()
10+
// Expose ISaveable interface in derived class to make sure we are calling the new version of Save method
11+
public class FlowLauncherJsonStorage<T> : JsonStorage<T>, ISavable where T : new()
1012
{
1113
private static readonly string ClassName = "FlowLauncherJsonStorage";
1214

Flow.Launcher.Infrastructure/Storage/PluginBinaryStorage.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
using System.IO;
22
using System.Threading.Tasks;
33
using Flow.Launcher.Infrastructure.Logger;
4+
using Flow.Launcher.Plugin;
45
using Flow.Launcher.Plugin.SharedCommands;
56

67
namespace Flow.Launcher.Infrastructure.Storage
78
{
8-
public class PluginBinaryStorage<T> : BinaryStorage<T> where T : new()
9+
// Expose ISaveable interface in derived class to make sure we are calling the new version of Save method
10+
public class PluginBinaryStorage<T> : BinaryStorage<T>, ISavable where T : new()
911
{
1012
private static readonly string ClassName = "PluginBinaryStorage";
1113

Flow.Launcher.Infrastructure/Storage/PluginJsonStorage.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
using System.Threading.Tasks;
33
using Flow.Launcher.Infrastructure.Logger;
44
using Flow.Launcher.Infrastructure.UserSettings;
5+
using Flow.Launcher.Plugin;
56
using Flow.Launcher.Plugin.SharedCommands;
67

78
namespace Flow.Launcher.Infrastructure.Storage
89
{
9-
public class PluginJsonStorage<T> : JsonStorage<T> where T : new()
10+
// Expose ISaveable interface in derived class to make sure we are calling the new version of Save method
11+
public class PluginJsonStorage<T> : JsonStorage<T>, ISavable where T : new()
1012
{
1113
// Use assembly name to check which plugin is using this storage
1214
public readonly string AssemblyName;

0 commit comments

Comments
 (0)