Removed unused code

This commit is contained in:
Thorsten Sommer 2025-12-17 13:09:14 +01:00
parent 6cd845dd9a
commit 2e41dd5b69
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -1,5 +1,4 @@
using AIStudio.Dialogs; using AIStudio.Dialogs;
using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.Rust; using AIStudio.Tools.Rust;
using AIStudio.Tools.Services; using AIStudio.Tools.Services;
@ -11,24 +10,12 @@ using DialogOptions = Dialogs.DialogOptions;
public partial class AttachDocuments : MSGComponentBase public partial class AttachDocuments : MSGComponentBase
{ {
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ProfileSelection).Namespace, nameof(ProfileSelection));
[Parameter] [Parameter]
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;
[Parameter]
public bool Disabled { get; set; }
[Parameter]
public string DisabledText { get; set; } = string.Empty;
private readonly string defaultToolTipText = TB("You can edit your files here");
[Parameter] [Parameter]
public HashSet<string> DocumentPaths { get; set; } = []; public HashSet<string> DocumentPaths { get; set; } = [];
private string ToolTipText => this.Disabled ? this.DisabledText : this.defaultToolTipText;
[Parameter] [Parameter]
public EventCallback<HashSet<string>> DocumentPathsChanged { get; set; } public EventCallback<HashSet<string>> DocumentPathsChanged { get; set; }