Skip to content

Commit

Permalink
rearrange danmaku when source filter is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rkscv committed Jul 28, 2024
1 parent 544089d commit 24d5428
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ async fn main(ctx: *mut mpv_handle) -> c_int {
for comment in comments {
comment.blocked =
filter.sources.contains(&comment.source);
comment.x = None;
comment.row = None;
}
}
osd_message(&format!(
Expand All @@ -230,6 +232,8 @@ async fn main(ctx: *mut mpv_handle) -> c_int {
if let Some(comments) = &mut *comments.lock().await {
for comment in comments {
comment.blocked = sources.contains(&comment.source);
comment.x = None;
comment.row = None;
}
}
osd_message(&format!(
Expand Down

0 comments on commit 24d5428

Please sign in to comment.