Fix placeholder text issue

This commit is contained in:
Jack251970 2025-03-29 15:48:52 +08:00
parent 10d43875ea
commit 6f32a6f098

View file

@ -768,17 +768,10 @@ namespace Flow.Launcher.ViewModel
private string _placeholderText;
public string PlaceholderText
{
get => _placeholderText;
get => string.IsNullOrEmpty(_placeholderText) ? App.API.GetTranslation("queryTextBoxPlaceholder") : _placeholderText;
set
{
if (string.IsNullOrEmpty(value))
{
_placeholderText = App.API.GetTranslation("queryTextBoxSuggestion");
}
else
{
_placeholderText = value;
}
_placeholderText = value;
OnPropertyChanged();
}
}