make this conditional - don't need to execute this on linux for example

This commit is contained in:
Max Bradbury 2021-04-27 08:43:30 +01:00
parent 908ca1d769
commit ca779f8839
1 changed files with 5 additions and 3 deletions

View File

@ -234,9 +234,11 @@ fn build_ui(application: &gtk::Application) {
}
fn main() {
#[cfg(target_os = "windows")] {
// 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
rodio::default_output_device().unwrap();
}
let application = gtk::Application::new(
Some("dev.tinybird.max.lull"),