mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 13:23:28 +00:00
Enabling frontend dev tools (#1420)
This commit is contained in:
parent
15a748d3f9
commit
4e0dd5fe0b
3
.vscode/launch.json
vendored
3
.vscode/launch.json
vendored
|
@ -17,7 +17,8 @@
|
|||
"problemMatcher": "$rustc"
|
||||
},
|
||||
"env": {
|
||||
"RUST_BACKTRACE": "short"
|
||||
"RUST_BACKTRACE": "short",
|
||||
"SD_DEVTOOLS": "true"
|
||||
// "RUST_LOG": "sd_core::invalidate-query=trace"
|
||||
},
|
||||
"sourceLanguages": ["rust"],
|
||||
|
|
3
.vscode/tasks.json
vendored
3
.vscode/tasks.json
vendored
|
@ -52,7 +52,8 @@
|
|||
"--no-default-features"
|
||||
],
|
||||
"env": {
|
||||
"RUST_BACKTRACE": "short"
|
||||
"RUST_BACKTRACE": "short",
|
||||
"SD_DEVTOOLS": "true"
|
||||
// "RUST_LOG": "sd_core::invalidate-query=trace"
|
||||
},
|
||||
"problemMatcher": ["$rustc"],
|
||||
|
|
|
@ -155,6 +155,13 @@ async fn main() -> tauri::Result<()> {
|
|||
}
|
||||
});
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
if std::env::var("SD_DEVTOOLS").is_ok() {
|
||||
window.open_devtools();
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
window.set_decorations(true).unwrap();
|
||||
|
||||
|
|
Loading…
Reference in a new issue