aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Main.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Main.hx')
-rw-r--r--src/client/Main.hx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx
index 781f5e8..0f6b31e 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -387,11 +387,13 @@ class Main {
if (player.isListEmpty()) player.pause();
case Pause:
+ player.setPauseIndicator(false);
if (isLeader()) return;
player.pause();
player.setTime(data.pause.time);
case Play:
+ player.setPauseIndicator(true);
if (isLeader()) return;
player.setTime(data.play.time);
player.play();
@@ -418,6 +420,7 @@ class Main {
if (player.getDuration() <= player.getTime() + synchThreshold) return;
if (!data.getTime.paused) player.play();
else player.pause();
+ player.setPauseIndicator(!data.getTime.paused);
if (Math.abs(time - newTime) < synchThreshold) return;
player.setTime(newTime);
@@ -812,6 +815,10 @@ class Main {
return config.youtubeApiKey;
}
+ public function isVerbose():Bool {
+ return config.isVerbose;
+ }
+
function escapeRegExp(regex:String):String {
return ~/([.*+?^${}()|[\]\\])/g.replace(regex, "\\$1");
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage