Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
core1024 committed Dec 23, 2024
1 parent a8c1350 commit cd59cdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/stremio_app/stremio_player/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,19 +170,22 @@ fn create_message_thread(
a2 = format!(r#""{arg2}""#);
a3 = format!(r#""{arg3}""#);
a4 = format!(r#""{arg4}""#);
(name, vec![a1.as_ref(), a2.as_ref(), a3.as_ref(), a4.as_ref()])
(
name,
vec![a1.as_ref(), a2.as_ref(), a3.as_ref(), a4.as_ref()],
)
}
CmdVal::Quadruple(name, arg1, arg2, arg3) => {
a1 = format!(r#""{arg1}""#);
a2 = format!(r#""{arg2}""#);
a3 = format!(r#""{arg3}""#);
(name, vec![a1.as_ref(), a2.as_ref(), a3.as_ref()])
}
CmdVal::Tripple(name, arg1, arg2 ) => {
CmdVal::Tripple(name, arg1, arg2) => {
a1 = format!(r#""{arg1}""#);
a2 = format!(r#""{arg2}""#);
(name, vec![a1.as_ref(), a2.as_ref()])
},
}
CmdVal::Double(name, arg1) => {
a1 = format!(r#""{arg1}""#);
(name, vec![a1.as_ref()])
Expand Down
2 changes: 1 addition & 1 deletion src/stremio_app/stremio_wevbiew/wevbiew.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl PartialUi for WebView {
Ok(())
}).expect("Cannot add D&D handler");
webview.add_contains_full_screen_element_changed(move |wv| {
if let Ok(visibility) = wv.get_contains_full_screen_element() {
if let Ok(visibility) = wv.get_contains_full_screen_element() {
tx_fs.send(ipc::RPCResponse::response_message(Some(json!(["win-set-visibility" , {"fullscreen": visibility}])))).ok();
}
Ok(())
Expand Down

0 comments on commit cd59cdc

Please sign in to comment.