mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-24 20:52:11 +00:00
Improve FileLoadedTooltip logic to handle empty loaded file name case
This commit is contained in:
parent
a8169bc6b4
commit
58de8f1a7e
@ -376,7 +376,10 @@ public partial class ReadFileContent : MSGComponentBase
|
|||||||
|
|
||||||
private string FileLoadedTooltip()
|
private string FileLoadedTooltip()
|
||||||
{
|
{
|
||||||
if (!this.hasLoadedFileContent || string.IsNullOrWhiteSpace(this.loadedFileName))
|
if (!this.hasLoadedFileContent)
|
||||||
|
return string.Empty;
|
||||||
|
|
||||||
|
if (string.IsNullOrWhiteSpace(this.loadedFileName))
|
||||||
return this.T("File content loaded");
|
return this.T("File content loaded");
|
||||||
|
|
||||||
return string.Format(this.T("Attached file '{0}'."), this.loadedFileName);
|
return string.Format(this.T("Attached file '{0}'."), this.loadedFileName);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user