Make fltk dependency optional on ui feature

This commit is contained in:
Philip Kristoffersen
2021-09-27 22:58:56 +02:00
parent 8434f7841f
commit ace806eb69
3 changed files with 25 additions and 14 deletions
+3
View File
@@ -6,7 +6,9 @@ mod platform;
mod settings;
mod steam;
mod steamgriddb;
#[cfg(feature = "ui")]
use fltk::{app, prelude::*, window::Window};
#[cfg(feature = "ui")]
mod mainview;
use crate::{
@@ -25,6 +27,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
{
let app = app::App::default().with_scheme(app::Scheme::Gtk);
let mut ui = mainview::UserInterface::make_window();
app.run().unwrap();
}