mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
Display the title from System.Title directly instead of extracting it from the path
This commit is contained in:
@@ -34,10 +34,17 @@ namespace Wox.Plugin.Indexer.SearchHelper
|
||||
{
|
||||
if(WDSResults.HasRows)
|
||||
{
|
||||
while (WDSResults.Read() && WDSResults.GetValue(0) != DBNull.Value)
|
||||
while (WDSResults.Read())
|
||||
{
|
||||
var result = new SearchResult { Path = WDSResults.GetString(0) };
|
||||
_Result.Add(result);
|
||||
if(WDSResults.GetValue(0) != DBNull.Value && WDSResults.GetValue(1) != DBNull.Value)
|
||||
{
|
||||
var result = new SearchResult
|
||||
{
|
||||
Path = WDSResults.GetString(0),
|
||||
Title = WDSResults.GetString(1)
|
||||
};
|
||||
_Result.Add(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user