set pause no before loading file

This commit is contained in:
Frank Skare
2021-07-12 00:58:16 +02:00
parent 33bbc4a2c4
commit 43c150a18b

View File

@@ -1134,11 +1134,16 @@ namespace mpvnet
commandv("loadfile", @"bd://"); commandv("loadfile", @"bd://");
} }
else else
{
if (i == 0 && !append) if (i == 0 && !append)
{
command("set pause no");
commandv("loadfile", file); commandv("loadfile", file);
}
else else
commandv("loadfile", file, "append"); commandv("loadfile", file, "append");
} }
}
if (string.IsNullOrEmpty(get_property_string("path"))) if (string.IsNullOrEmpty(get_property_string("path")))
set_property_int("playlist-pos", 0); set_property_int("playlist-pos", 0);