mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add check for null or empty for description
This commit is contained in:
parent
e7c4d83e81
commit
d4b5a196fe
2 changed files with 3 additions and 1 deletions
1
Plugins/Flow.Launcher.Plugin.Everything
Submodule
1
Plugins/Flow.Launcher.Plugin.Everything
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 6d5b687e240a6abdc5623d8a8e09501f3994b0d3
|
||||
|
|
@ -235,7 +235,8 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
{
|
||||
var program = Win32Program(path);
|
||||
var info = FileVersionInfo.GetVersionInfo(path);
|
||||
program.Description = info.FileDescription;
|
||||
if (!string.IsNullOrEmpty(info.FileDescription))
|
||||
program.Description = info.FileDescription;
|
||||
return program;
|
||||
}
|
||||
catch (Exception e) when (e is SecurityException || e is UnauthorizedAccessException)
|
||||
|
|
|
|||
Loading…
Reference in a new issue