From 6f32a6f098851cf3af741b394b6a91c17db0c67a Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 29 Mar 2025 15:48:52 +0800 Subject: [PATCH] Fix placeholder text issue --- Flow.Launcher/ViewModel/MainViewModel.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index ec5b52c9d..a8425a456 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -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(); } }