mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix flashing bug introduced in 152a7d719b15b3fb4559bea09b378b963555fe45
part of #565
This commit is contained in:
parent
d416a77866
commit
4a7e9c16d0
1 changed files with 5 additions and 9 deletions
|
|
@ -453,6 +453,7 @@ namespace Wox.ViewModel
|
|||
}
|
||||
};
|
||||
action.Invoke();
|
||||
|
||||
var plugins = PluginManager.ValidPluginsForQuery(query);
|
||||
foreach (var plugin in plugins)
|
||||
{
|
||||
|
|
@ -466,9 +467,9 @@ namespace Wox.ViewModel
|
|||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
IsProgressBarTooltipVisible = false;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void ResetQueryHistoryIndex()
|
||||
|
|
@ -479,8 +480,7 @@ namespace Wox.ViewModel
|
|||
|
||||
private void UpdateResultViewInternal(List<Result> list, PluginMetadata metadata)
|
||||
{
|
||||
Stopwatch.Normal($"UI update cost for {metadata.Name}",
|
||||
() => { Results.AddResults(list, metadata.ID); });
|
||||
Results.AddResults(list, metadata.ID);
|
||||
}
|
||||
|
||||
private void DisplayQueryHistory(HistoryItem history)
|
||||
|
|
@ -562,14 +562,10 @@ namespace Wox.ViewModel
|
|||
});
|
||||
}
|
||||
|
||||
if (list.Count > 0)
|
||||
if (list.Count > 0 && ! ResultListBoxVisibility.IsVisible())
|
||||
{
|
||||
ResultListBoxVisibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
ResultListBoxVisibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue