mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-06 01:27:24 +03:00
chore: update file change listener to use the session handler instead of the project file change handler
This commit is contained in:
parent
606fbf8384
commit
9a4f5cb3ab
@ -176,7 +176,7 @@ mod test {
|
||||
|
||||
fn create_new_session_via_new_file(project: &projects::Project, suite: &Suite) {
|
||||
fs::write(project.path.join("test.txt"), "test").unwrap();
|
||||
let file_change_listener = handlers::project_file_change::Handler::new();
|
||||
let file_change_listener = handlers::session_handler::Handler::from(&suite.local_app_data);
|
||||
file_change_listener
|
||||
.handle("test.txt", &project.id)
|
||||
.unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user