Skip to content

Commit 8aa36f3

Browse files
committed
Add ShowAtTopmost in settings
1 parent 86a3b0b commit 8aa36f3

File tree

1 file changed

+30
-8
lines changed

1 file changed

+30
-8
lines changed

Flow.Launcher.Infrastructure/UserSettings/Settings.cs

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,19 @@ public string Language
5959
get => _language;
6060
set
6161
{
62-
_language = value;
63-
OnPropertyChanged();
62+
if (_language != value)
63+
{
64+
_language = value;
65+
OnPropertyChanged();
66+
}
6467
}
6568
}
6669
public string Theme
6770
{
6871
get => _theme;
6972
set
7073
{
71-
if (value != _theme)
74+
if (_theme != value)
7275
{
7376
_theme = value;
7477
OnPropertyChanged();
@@ -283,9 +286,12 @@ public SearchPrecisionScore QuerySearchPrecision
283286
get => _querySearchPrecision;
284287
set
285288
{
286-
_querySearchPrecision = value;
287-
if (_stringMatcher != null)
288-
_stringMatcher.UserSettingSearchPrecision = value;
289+
if (_querySearchPrecision != value)
290+
{
291+
_querySearchPrecision = value;
292+
if (_stringMatcher != null)
293+
_stringMatcher.UserSettingSearchPrecision = value;
294+
}
289295
}
290296
}
291297

@@ -348,12 +354,28 @@ public bool HideNotifyIcon
348354
get => _hideNotifyIcon;
349355
set
350356
{
351-
_hideNotifyIcon = value;
352-
OnPropertyChanged();
357+
if (_hideNotifyIcon != value)
358+
{
359+
_hideNotifyIcon = value;
360+
OnPropertyChanged();
361+
}
353362
}
354363
}
355364
public bool LeaveCmdOpen { get; set; }
356365
public bool HideWhenDeactivated { get; set; } = true;
366+
private bool _showAtTopmost;
367+
public bool ShowAtTopmost
368+
{
369+
get => _showAtTopmost;
370+
set
371+
{
372+
if (_showAtTopmost != value)
373+
{
374+
_showAtTopmost = value;
375+
OnPropertyChanged();
376+
}
377+
}
378+
}
357379

358380
public bool SearchQueryResultsWithDelay { get; set; }
359381
public int SearchDelayTime { get; set; } = 150;

0 commit comments

Comments
 (0)