Skip to content

Commit 56c2f2e

Browse files
committed
Mock mep preview emit for CLI builds
1 parent c95b78f commit 56c2f2e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/data_processing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::element_processing::*;
66
use crate::ground::Ground;
77
use crate::map_renderer;
88
use crate::osm_parser::ProcessedElement;
9-
use crate::progress::emit_gui_progress_update;
9+
use crate::progress::{emit_gui_progress_update, emit_map_preview_ready};
1010
#[cfg(feature = "gui")]
1111
use crate::telemetry::{send_log, LogLevel};
1212
use crate::world_editor::WorldEditor;
@@ -283,7 +283,7 @@ pub fn generate_world(
283283
match result {
284284
Ok(Ok(_path)) => {
285285
// Notify the GUI that the map preview is ready
286-
crate::progress::emit_map_preview_ready();
286+
emit_map_preview_ready();
287287
}
288288
Ok(Err(e)) => {
289289
eprintln!("Warning: Failed to generate map preview: {}", e);

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ mod gui;
3737
mod progress {
3838
pub fn emit_gui_error(_message: &str) {}
3939
pub fn emit_gui_progress_update(_progress: f64, _message: &str) {}
40+
pub fn emit_map_preview_ready() {}
4041
pub fn is_running_with_gui() -> bool {
4142
false
4243
}

0 commit comments

Comments
 (0)