Skip to content

Commit fb3ee0e

Browse files
committed
Add easter egg to rustcast in dedication to randomvariable on rust discord server
1 parent 5366537 commit fb3ee0e

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

Cargo.lock

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ iced = { version = "0.14.0", features = ["smol", "tokio"] }
1111
objc2 = "0.6.3"
1212
objc2-app-kit = "0.3.2"
1313
objc2-foundation = "0.3.2"
14+
rand = "0.9.2"
1415
tokio = { version = "1.48.0", features = ["full"] }
16+
tray-item = "0.10.0"
1517

1618
[package.metadata.bundle]
1719
name = "RustCast"

src/app.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,13 @@ impl Tile {
225225
height: DEFAULT_WINDOW_HEIGHT,
226226
},
227227
);
228+
} else if self.query_lc == "randomvar" {
229+
self.results = vec![App {
230+
open_command: "".to_string(),
231+
icon_path: None,
232+
name: rand::random_range(0..100).to_string(),
233+
name_lc: String::new(),
234+
}]
228235
}
229236

230237
let filter_vec = if self.query_lc.starts_with(&self.prev_query_lc) {

0 commit comments

Comments
 (0)