Skip to content

Commit

Permalink
only use egui filebrowser when flag is used
Browse files Browse the repository at this point in the history
  • Loading branch information
woelper committed Feb 11, 2024
1 parent 0b2d246 commit 69fd121
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/image_editing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::path::Path;

use crate::paint::PaintStroke;
use crate::ui::EguiExt;
#[cfg(not(feature = "file_open"))]
use crate::{filebrowser, SUPPORTED_EXTENSIONS};

use anyhow::Result;
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ use utils::*;
mod appstate;
mod image_loader;
use appstate::*;
#[cfg(not(feature = "file_open"))]
mod filebrowser;

pub mod ktx2_loader;
Expand Down
1 change: 1 addition & 0 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use crate::{
},
FrameSource,
};
#[cfg(not(feature = "file_open"))]
use crate::{filebrowser, SUPPORTED_EXTENSIONS};

const ICON_SIZE: f32 = 24.;
Expand Down

0 comments on commit 69fd121

Please sign in to comment.