Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

/// <summary>
/// Reloads any Plugins that have the
/// IReloadable implemented. It refeshes

Check warning on line 69 in Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`refeshes` is not a recognized word. (unrecognized-spelling)
/// Plugin's in memory data with new content
/// added by user.
/// </summary>
Expand Down Expand Up @@ -257,7 +257,7 @@
Task<Stream> HttpGetStreamAsync(string url, CancellationToken token = default);

/// <summary>
/// Download the specific url to a cretain file path

Check warning on line 260 in Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`cretain` is not a recognized word. (unrecognized-spelling)
/// </summary>
/// <param name="url">URL to download file</param>
/// <param name="filePath">path to save downloaded file</param>
Expand Down Expand Up @@ -318,7 +318,7 @@

/// <summary>
/// Log an Exception. Will throw if in debug mode so developer will be aware,
/// otherwise logs the eror message. This is the primary logging method used for Flow

Check warning on line 321 in Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`eror` is not a recognized word. (unrecognized-spelling)
/// </summary>
void LogException(string className, string message, Exception e, [CallerMemberName] string methodName = "");

Expand Down Expand Up @@ -533,12 +533,12 @@
public Task<bool> UpdatePluginManifestAsync(bool usePrimaryUrlOnly = false, CancellationToken token = default);

/// <summary>
/// Get the plugin manifest.
/// Get the current plugin manifest entries known to Flow Launcher.
/// </summary>
/// <remarks>
/// If Flow cannot get manifest data, this could be null
/// </remarks>
/// <returns></returns>
/// <returns>
/// A non-null read-only list of <see cref="UserPlugin"/> entries. The list may be empty if the
/// manifest has not been loaded yet, or if no successful manifest fetch has completed in the current session.
/// </returns>
public IReadOnlyList<UserPlugin> GetPluginManifest();
Comment thread
Jack251970 marked this conversation as resolved.

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Flow.Launcher/PublicAPIInstance.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Specialized;
Expand Down Expand Up @@ -30,7 +30,7 @@
using Flow.Launcher.Plugin.SharedCommands;
using Flow.Launcher.Plugin.SharedModels;
using Flow.Launcher.ViewModel;
using iNKORE.UI.WPF.Modern;

Check warning on line 33 in Flow.Launcher/PublicAPIInstance.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`NKORE` is not a recognized word. (unrecognized-spelling)
using JetBrains.Annotations;
using Squirrel;
using Stopwatch = Flow.Launcher.Infrastructure.Stopwatch;
Expand Down Expand Up @@ -583,7 +583,7 @@
public Task<bool> UpdatePluginManifestAsync(bool usePrimaryUrlOnly = false, CancellationToken token = default) =>
PluginsManifest.UpdateManifestAsync(usePrimaryUrlOnly, token);

public IReadOnlyList<UserPlugin> GetPluginManifest() => PluginsManifest.UserPlugins;
public IReadOnlyList<UserPlugin> GetPluginManifest() => PluginsManifest.UserPlugins ?? [];

public bool PluginModified(string id) => PluginManager.PluginModified(id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public bool ShowExecutable
}
}

public IList<PluginStoreItemViewModel> ExternalPlugins => App.API.GetPluginManifest()?
public IList<PluginStoreItemViewModel> ExternalPlugins => App.API.GetPluginManifest()
.Select(p => new PluginStoreItemViewModel(p))
.OrderByDescending(p => p.Category == PluginStoreItemViewModel.NewRelease)
.ThenByDescending(p => p.Category == PluginStoreItemViewModel.RecentlyUpdated)
Expand Down
Loading