Skip to content

Commit

Permalink
devtools is enable in prod build in Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed Feb 18, 2025
1 parent 1c7ee53 commit bdfb867
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,11 @@ fn open_path(path: String) {
#[allow(clippy::needless_pass_by_value)]
#[tauri::command]
fn open_dev_tools(app_handle: AppHandle) {
#[cfg(debug_assertions)]
{
let window = app_handle.get_webview_window("main").unwrap();
if window.is_devtools_open() {
window.close_devtools();
} else {
window.open_devtools();
}
let window = app_handle.get_webview_window("main").unwrap();
if window.is_devtools_open() {
window.close_devtools();
} else {
window.open_devtools();
}
}

Expand Down

0 comments on commit bdfb867

Please sign in to comment.