@setoelkahfi / svara / commits / aa622ac

revert(rust): removed unused devtools function

mellbacon committed Jun 29, 2023 at 11:54 UTC aa622acadb00390a10d08e54a2ea7761774066fc
1 file changed +1 -6
src-tauri/src/main.rs
+1 -6
@@ -51,14 +51,9 @@ fn delete_file(path: &str, perm: bool) {
51 }
52 }
53
54 -#[tauri::command]
55 -fn open_devtools(app_handle: tauri::AppHandle) {
56 - app_handle.get_window("main").unwrap().open_devtools();
57 -}
58 -
54 fn main() {
55 tauri::Builder::default()
61 - .invoke_handler(tauri::generate_handler![open_in_explorer, delete_file, attempt_file_access, is_file, is_folder, open_devtools])
56 + .invoke_handler(tauri::generate_handler![open_in_explorer, delete_file, attempt_file_access, is_file, is_folder])
57 .plugin(tauri_plugin_fs_watch::init())
58 .run(tauri::generate_context!())
59 .expect("error while running tauri application");