mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
restructuring with dedicated app_model update file
This commit is contained in:
parent
7613730ada
commit
fa2480ed4f
7 changed files with 144 additions and 126 deletions
|
@ -25,7 +25,7 @@ use crate::graphics::style::CODE_FONT_SIZE;
|
|||
use crate::graphics::style::CODE_TXT_XY;
|
||||
use crate::mvc::app_model::AppModel;
|
||||
use crate::mvc::ed_model::EdModel;
|
||||
use crate::mvc::{ed_model, ed_view, update};
|
||||
use crate::mvc::{ed_model, ed_view, ed_update};
|
||||
use crate::resources::strings::NOTHING_OPENED;
|
||||
use crate::vec_result::get_res;
|
||||
use bumpalo::Bump;
|
||||
|
@ -213,7 +213,7 @@ fn run_event_loop(file_path_opt: Option<&Path>) -> Result<(), Box<dyn Error>> {
|
|||
event: event::WindowEvent::ReceivedCharacter(ch),
|
||||
..
|
||||
} => {
|
||||
if let Err(e) = update::handle_new_char(&mut app_model, &ch) {
|
||||
if let Err(e) = ed_update::handle_new_char(&mut app_model, &ch) {
|
||||
print_err(&e)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue