mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Code cleanup
This commit is contained in:
parent
9167cba636
commit
b93faffdc0
2 changed files with 3 additions and 5 deletions
|
|
@ -21,10 +21,8 @@ namespace Flow.Launcher.ViewModel
|
||||||
{
|
{
|
||||||
Settings = settings;
|
Settings = settings;
|
||||||
|
|
||||||
if (result == null)
|
if (result == null) return;
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Result = result;
|
Result = result;
|
||||||
|
|
||||||
if (Result.Glyph is { FontFamily: not null } glyph)
|
if (Result.Glyph is { FontFamily: not null } glyph)
|
||||||
|
|
@ -61,7 +59,6 @@ namespace Flow.Launcher.ViewModel
|
||||||
Glyph = glyph;
|
Glyph = glyph;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Settings Settings { get; }
|
public Settings Settings { get; }
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ namespace Flow.Launcher.ViewModel
|
||||||
Results = new ResultCollection();
|
Results = new ResultCollection();
|
||||||
BindingOperations.EnableCollectionSynchronization(Results, _collectionLock);
|
BindingOperations.EnableCollectionSynchronization(Results, _collectionLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResultsViewModel(Settings settings) : this()
|
public ResultsViewModel(Settings settings) : this()
|
||||||
{
|
{
|
||||||
_settings = settings;
|
_settings = settings;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue