aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Player.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Player.hx')
-rw-r--r--src/client/Player.hx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/Player.hx b/src/client/Player.hx
index 7fc021d..670d5da 100644
--- a/src/client/Player.hx
+++ b/src/client/Player.hx
@@ -601,7 +601,10 @@ class Player {
}
public function pause():Void {
- if (!isSyncActive()) return;
+ // allow pausing when removing last video
+ if (videoList.length > 0) {
+ if (!isSyncActive()) return;
+ }
if (player == null) return;
if (!player.isVideoLoaded()) return;
player.pause();
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage