We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5081923 commit 7012c01Copy full SHA for 7012c01
src-tauri/src/command/cmds.rs
@@ -142,10 +142,7 @@ pub async fn open_url(_: tauri::AppHandle, url: String) {
142
// open devtools
143
#[tauri::command]
144
pub async fn open_devtools(handle: AppHandle) {
145
- if let Some(_) = handle.get_webview_window("main") {
146
- println!("open devtools");
147
- // existing_window.open_devtools();
148
- }
+ let _ = handle.get_webview_window("main").unwrap().open_devtools();
149
}
150
151
0 commit comments