Show loading indicator during plugin creation

This commit is contained in:
Stone_Red
2026-01-21 21:26:05 +01:00
parent 667c913e57
commit ea07f0db3a
@@ -476,6 +476,8 @@ public partial class PluginManager : Page
return;
}
pluginManagerDataContext.IsLoading = true;
PluginMetadata pluginMetadata = new(pluginName, pluginId);
_ = Directory.CreateDirectory(pluginPath);
@@ -588,9 +590,9 @@ public class {pluginSafeName}Plugin : Plugin
{
App.Logger.LogInfo($"Opening plugin project in Explorer: {pluginProjectPath}", source: "PluginManager");
_ = Process.Start("explorer.exe", pluginProjectPath);
return;
}
else
{
App.Logger.LogInfo($"Opening plugin project in IDE: {associatedProgram}", source: "PluginManager");
ProcessStartInfo psi = new ProcessStartInfo
{
@@ -599,7 +601,11 @@ public class {pluginSafeName}Plugin : Plugin
};
_ = Process.Start(psi);
}
App.Logger.LogInfo($"Successfully created plugin: {pluginName}", source: "PluginManager");
pluginManagerDataContext.IsLoading = false;
}
private async void LogInButton_Click(object sender, RoutedEventArgs e)