add_logic is now using canvas library

This commit is contained in:
Priec
2025-07-30 18:02:59 +02:00
parent 4e0338276f
commit e4982f871f
5 changed files with 194 additions and 93 deletions

View File

@@ -357,10 +357,10 @@ pub async fn handle_edit_event(
)
.await?
} else if app_state.ui.show_add_logic {
// FIX: Pass &mut event_handler.ideal_cursor_column
add_logic_e::execute_edit_action(
action_str,
// NEW: Use unified canvas handler instead of add_logic_e::execute_edit_action
handle_canvas_state_edit(
key,
config,
&mut admin_state.add_logic_state,
&mut event_handler.ideal_cursor_column,
)
@@ -408,10 +408,10 @@ pub async fn handle_edit_event(
)
.await?
} else if app_state.ui.show_add_logic {
// FIX: Pass &mut event_handler.ideal_cursor_column
add_logic_e::execute_edit_action(
"insert_char",
// NEW: Use unified canvas handler instead of add_logic_e::execute_edit_action
handle_canvas_state_edit(
key,
config,
&mut admin_state.add_logic_state,
&mut event_handler.ideal_cursor_column,
)