Skip to content

Commit 8c56c0b

Browse files
committed
Fix logic
1 parent 6317d0e commit 8c56c0b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Flow.Launcher.Infrastructure/PinyinAlphabet.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@ public PinyinAlphabet()
2727
{
2828
switch (e.PropertyName)
2929
{
30-
case nameof(Settings.ShouldUsePinyin):
31-
Reload();
30+
case nameof (Settings.ShouldUsePinyin):
31+
if (_settings.ShouldUsePinyin)
32+
{
33+
Reload();
34+
}
3235
break;
3336
case nameof(Settings.UseDoublePinyin):
34-
Reload();
35-
break;
3637
case nameof(Settings.DoublePinyinSchema):
37-
Reload();
38+
if (_settings.UseDoublePinyin)
39+
{
40+
Reload();
41+
}
3842
break;
3943
}
4044
};

0 commit comments

Comments
 (0)