File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use crate::element_processing::*;
66use crate :: ground:: Ground ;
77use crate :: map_renderer;
88use 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" ) ]
1111use crate :: telemetry:: { send_log, LogLevel } ;
1212use 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) ;
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ mod gui;
3737mod 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 }
You can’t perform that action at this time.
0 commit comments