Skip to content

Commit a748141

Browse files
committed
Use IPublicAPI instead
1 parent 1b76a2b commit a748141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher/App.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace Flow.Launcher
2727
{
2828
public partial class App : IDisposable, ISingleInstanceApp
2929
{
30-
public static PublicAPIInstance API { get; private set; }
30+
public static IPublicAPI API { get; private set; }
3131
private const string Unique = "Flow.Launcher_Unique_Application_Mutex";
3232
private static bool _disposed;
3333
private Settings _settings;
@@ -93,7 +93,7 @@ await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () =>
9393

9494
PluginManager.LoadPlugins(_settings.PluginSettings);
9595

96-
API = Ioc.Default.GetRequiredService<IPublicAPI>() as PublicAPIInstance;
96+
API = Ioc.Default.GetRequiredService<IPublicAPI>();
9797

9898
Http.API = API;
9999
Http.Proxy = _settings.Proxy;

0 commit comments

Comments
 (0)