This commit is contained in:
Frank Skare
2020-05-07 13:21:59 +02:00
parent 9d46064dca
commit ed614332f7
3 changed files with 38 additions and 54 deletions

View File

@@ -1,6 +1,4 @@
Set-Variable wasPaused $false -Option AllScope
$code = {
$isMinimized = $args[0]
$isPaused = $mp.get_property_bool('pause')
@@ -10,17 +8,17 @@ $code = {
if (-not $isPaused)
{
$mp.set_property_bool('pause', $true)
$wasPaused = $true
$script:wasPaused = $true
}
}
else
{
if ($wasPaused -and $isPaused)
if ($script:wasPaused -and $isPaused)
{
$mp.set_property_bool('pause', $false)
}
$wasPaused = $false
$script:wasPaused = $false
}
}