Short circuit template UI process if doesn't exist

This commit is contained in:
Garulf 2023-11-18 18:44:27 -05:00
parent b67e815022
commit 388688e89c

View file

@ -36,6 +36,11 @@ namespace Flow.Launcher.Core.Plugin
_storage = new JsonStorage<Dictionary<string, object>>(SettingPath);
Settings = await _storage.LoadAsync();
if (Settings != null)
{
return;
}
foreach (var (type, attributes) in Configuration.Body)
{
if (attributes.Name == null)