Skip to content

Commit f109fb8

Browse files
committed
Notify MaxResultsToShow to trigger max height change when changing theme
1 parent a645664 commit f109fb8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Flow.Launcher.Infrastructure/UserSettings/Settings.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
1313
public class Settings : BaseModel
1414
{
1515
private string language = "en";
16+
private string _theme = Constant.DefaultTheme;
1617
public string Hotkey { get; set; } = $"{KeyConstant.Alt} + {KeyConstant.Space}";
1718
public string OpenResultModifiers { get; set; } = KeyConstant.Alt;
1819
public string ColorScheme { get; set; } = "System";
@@ -29,7 +30,18 @@ public string Language
2930
OnPropertyChanged();
3031
}
3132
}
32-
public string Theme { get; set; } = Constant.DefaultTheme;
33+
public string Theme
34+
{
35+
get => _theme;
36+
set
37+
{
38+
if (value == _theme)
39+
return;
40+
_theme = value;
41+
OnPropertyChanged();
42+
OnPropertyChanged(nameof(MaxResultsToShow));
43+
}
44+
}
3345
public bool UseDropShadowEffect { get; set; } = false;
3446
public string QueryBoxFont { get; set; } = FontFamily.GenericSansSerif.Name;
3547
public string QueryBoxFontStyle { get; set; }

0 commit comments

Comments
 (0)