mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add OnPropertyChanged() for double pinyin properties
This commit is contained in:
parent
64a3aa583f
commit
b18959514d
1 changed files with 26 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue