mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Fix flashing bug introduced in 152a7d719b15b3fb4559bea09b378b963555fe45
part of #565
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user