mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +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();
|
action.Invoke();
|
||||||
|
|
||||||
var plugins = PluginManager.ValidPluginsForQuery(query);
|
var plugins = PluginManager.ValidPluginsForQuery(query);
|
||||||
foreach (var plugin in plugins)
|
foreach (var plugin in plugins)
|
||||||
{
|
{
|
||||||
@@ -466,9 +467,9 @@ namespace Wox.ViewModel
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
IsProgressBarTooltipVisible = false;
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ResetQueryHistoryIndex()
|
private void ResetQueryHistoryIndex()
|
||||||
@@ -479,8 +480,7 @@ namespace Wox.ViewModel
|
|||||||
|
|
||||||
private void UpdateResultViewInternal(List<Result> list, PluginMetadata metadata)
|
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)
|
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;
|
ResultListBoxVisibility = Visibility.Visible;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
ResultListBoxVisibility = Visibility.Collapsed;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user