make this conditional - don't need to execute this on linux for example
This commit is contained in:
parent
908ca1d769
commit
ca779f8839
|
@ -234,9 +234,11 @@ fn build_ui(application: >k::Application) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
#[cfg(target_os = "windows")] {
|
||||||
// instantiate rodio before gtk and don't do anything with it
|
// instantiate rodio before gtk and don't do anything with it
|
||||||
// this is silly but it's the easiest way to prevent cpal crashing on windows
|
// this is silly but it's the easiest way to prevent cpal crashing on windows
|
||||||
rodio::default_output_device().unwrap();
|
rodio::default_output_device().unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
let application = gtk::Application::new(
|
let application = gtk::Application::new(
|
||||||
Some("dev.tinybird.max.lull"),
|
Some("dev.tinybird.max.lull"),
|
||||||
|
|
Loading…
Reference in New Issue