Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
force explorer window with title in capture_window example
Browse files Browse the repository at this point in the history
  • Loading branch information
liam committed Apr 2, 2024
1 parent b3ef6d6 commit 7a2de0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/capture_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() {
let content = CapturableContent::new(filter).await.unwrap();
let window = content.windows().filter(|window| {
let app_identifier = window.application().identifier();
app_identifier.to_lowercase().contains("finder") || app_identifier.to_lowercase().contains("explorer")
window.title().len() != 0 && (app_identifier.to_lowercase().contains("finder") || app_identifier.to_lowercase().contains("explorer"))
}).next();
match window {
Some(window) => {
Expand Down

0 comments on commit 7a2de0a

Please sign in to comment.