Skip to content

Commit 6f32a6f

Browse files
committed
Fix placeholder text issue
1 parent 10d4387 commit 6f32a6f

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -768,17 +768,10 @@ private ResultsViewModel SelectedResults
768768
private string _placeholderText;
769769
public string PlaceholderText
770770
{
771-
get => _placeholderText;
771+
get => string.IsNullOrEmpty(_placeholderText) ? App.API.GetTranslation("queryTextBoxPlaceholder") : _placeholderText;
772772
set
773773
{
774-
if (string.IsNullOrEmpty(value))
775-
{
776-
_placeholderText = App.API.GetTranslation("queryTextBoxSuggestion");
777-
}
778-
else
779-
{
780-
_placeholderText = value;
781-
}
774+
_placeholderText = value;
782775
OnPropertyChanged();
783776
}
784777
}

0 commit comments

Comments
 (0)