mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Check if url field is null
This commit is contained in:
parent
568dced4bb
commit
c8dfd565e5
1 changed files with 4 additions and 0 deletions
|
|
@ -302,6 +302,10 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
var data = parser.ReadFile(path);
|
||||
var urlSection = data["InternetShortcut"];
|
||||
var url = urlSection?["URL"];
|
||||
if (String.IsNullOrEmpty(url))
|
||||
{
|
||||
return program;
|
||||
}
|
||||
foreach(var protocol in Main._settings.GetProtocols())
|
||||
{
|
||||
if(url.StartsWith(protocol))
|
||||
|
|
|
|||
Loading…
Reference in a new issue