mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 04:47:21 +00:00
Added PowerPoint templates to the Slide Assistant (#1055)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
8c5cfa78b6
commit
6eb23ebbcb
136 files changed
+16535
-522
No files matched your search
@@ -41,6 +41,9 @@ public partial class ConfigurationDirectory : ConfigurationBaseCore
|
||||
[Inject]
|
||||
private RustService RustService { get; init; } = null!;
|
||||
|
||||
[Inject]
|
||||
private ILogger<ConfigurationDirectory> Logger { get; init; } = null!;
|
||||
|
||||
private string internalText = string.Empty;
|
||||
private bool isDirectoryDialogOpen;
|
||||
|
||||
@@ -105,6 +108,26 @@ public partial class ConfigurationDirectory : ConfigurationBaseCore
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Takes the first dropped path which leads to a folder.
|
||||
/// </summary>
|
||||
/// <param name="paths">The dropped paths.</param>
|
||||
private async Task PathsDropped(List<string> paths)
|
||||
{
|
||||
var path = DroppedFolder.FirstUsable(paths);
|
||||
if (path is null)
|
||||
{
|
||||
this.Logger.LogWarning("None of the {Count} dropped path(s) could be used as a directory.", paths.Count);
|
||||
await this.MessageBus.SendWarning(new(Icons.Material.Filled.Warning, DroppedFolder.WarningFor(paths)));
|
||||
return;
|
||||
}
|
||||
|
||||
this.Logger.LogInformation("The user dropped the directory '{DroppedDirectory}'.", path);
|
||||
this.timer.Stop();
|
||||
this.internalText = path;
|
||||
await this.OptionChanged(path);
|
||||
}
|
||||
|
||||
private async Task OptionChanged(string updatedText)
|
||||
{
|
||||
this.TextUpdate(updatedText);
|
||||
|
||||
Reference in new issue
Block a user