From 9a4f5cb3ab2bf3173c4205bc55e1d696e6e4cb62 Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Thu, 16 Nov 2023 14:37:04 +0100 Subject: [PATCH] chore: update file change listener to use the session handler instead of the project file change handler --- packages/tauri/src/watcher/handlers/git_file_change.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tauri/src/watcher/handlers/git_file_change.rs b/packages/tauri/src/watcher/handlers/git_file_change.rs index 922bd59f2..9484b6b83 100644 --- a/packages/tauri/src/watcher/handlers/git_file_change.rs +++ b/packages/tauri/src/watcher/handlers/git_file_change.rs @@ -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();