aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Player.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2023-01-07 08:20:41 +0300
committerRblSb <msrblsb@gmail.com>2023-01-07 08:20:41 +0300
commitb3d825acb9d12208cf44f2d4b385163a86c38695 (patch)
tree09fdb4c54753c30f46f0c2824b550bbfb1217572 /src/client/Player.hx
parentc677e281d3d74d5925e19eb0479c27f46a3c7857 (diff)
Hints, Open in App button, ui animations
Diffstat (limited to 'src/client/Player.hx')
-rw-r--r--src/client/Player.hx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/Player.hx b/src/client/Player.hx
index 0227f05..207f93a 100644
--- a/src/client/Player.hx
+++ b/src/client/Player.hx
@@ -266,8 +266,7 @@ class Player {
btn.title = isTemp ? Lang.get("makePermanent") : Lang.get("makeTemporary");
final iconType = isTemp ? "lock-open" : "lock-closed";
btn.firstElementChild.setAttribute("name", iconType);
- if (isTemp) item.classList.add("queue_temp");
- else item.classList.remove("queue_temp");
+ item.classList.toggle("queue_temp", isTemp);
}
public function removeItem(url:String):Void {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage