Fix compilation on MacOS

This commit is contained in:
Lennard Kittner
2026-03-16 13:50:13 +01:00
committed by Lennard Kittner
parent 216da7f2d0
commit 926247706d
2 changed files with 13 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
#[cfg(target_os = "linux")]
use std::{fs, io, process::Command, time::Duration};
#[cfg(target_os = "linux")]
use dialog::{Choice, DialogBox};
// #![warn(missing_docs)]

View File

@@ -1,11 +1,23 @@
#[cfg(target_os = "linux")]
use clap::{Arg, Command};
#[cfg(target_os = "linux")]
use enigo::{Direction, Enigo, Key, Keyboard, Settings};
#[cfg(target_os = "linux")]
use std::time::Duration;
#[cfg(target_os = "linux")]
mod status_tray;
#[cfg(target_os = "linux")]
use hyper_headset::devices::connect_compatible_device;
#[cfg(target_os = "linux")]
use status_tray::{StatusTray, TrayHandler};
#[cfg(not(target_os = "linux"))]
fn main() {
eprintln!("The tray app currently only supports Linux. Please use hyper_headset_cli instead.");
}
#[cfg(target_os = "linux")]
fn main() {
#[cfg(target_os = "linux")]
{