Add OnPropertyChanged() for double pinyin properties

This commit is contained in:
VictoriousRaptor 2025-06-19 19:35:01 +08:00
parent 64a3aa583f
commit b18959514d

View file

@ -290,9 +290,33 @@ namespace Flow.Launcher.Infrastructure.UserSettings
/// </summary>
public bool ShouldUsePinyin { get; set; } = false;
public bool UseDoublePinyin { get; set; } = true; //For developing
private bool _useDoublePinyin = true; // TODO: change default to false BEFORE RELEASE
public bool UseDoublePinyin
{
get => _useDoublePinyin;
set
{
if (_useDoublePinyin != value)
{
_useDoublePinyin = value;
OnPropertyChanged();
}
}
}
public string DoublePinyinSchema { get; set; } = "XiaoHe"; //For developing
private string _doublePinyinSchema = "XiaoHe";
public string DoublePinyinSchema
{
get => _doublePinyinSchema;
set
{
if (_doublePinyinSchema != value)
{
_doublePinyinSchema = value;
OnPropertyChanged();
}
}
}
public bool AlwaysPreview { get; set; } = false;