mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
Enabling frontend dev tools (#1420)
This commit is contained in:
parent
bd7788f816
commit
e081cfead8
3
.vscode/launch.json
vendored
3
.vscode/launch.json
vendored
@ -17,7 +17,8 @@
|
|||||||
"problemMatcher": "$rustc"
|
"problemMatcher": "$rustc"
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"RUST_BACKTRACE": "short"
|
"RUST_BACKTRACE": "short",
|
||||||
|
"SD_DEVTOOLS": "true"
|
||||||
// "RUST_LOG": "sd_core::invalidate-query=trace"
|
// "RUST_LOG": "sd_core::invalidate-query=trace"
|
||||||
},
|
},
|
||||||
"sourceLanguages": ["rust"],
|
"sourceLanguages": ["rust"],
|
||||||
|
|||||||
3
.vscode/tasks.json
vendored
3
.vscode/tasks.json
vendored
@ -52,7 +52,8 @@
|
|||||||
"--no-default-features"
|
"--no-default-features"
|
||||||
],
|
],
|
||||||
"env": {
|
"env": {
|
||||||
"RUST_BACKTRACE": "short"
|
"RUST_BACKTRACE": "short",
|
||||||
|
"SD_DEVTOOLS": "true"
|
||||||
// "RUST_LOG": "sd_core::invalidate-query=trace"
|
// "RUST_LOG": "sd_core::invalidate-query=trace"
|
||||||
},
|
},
|
||||||
"problemMatcher": ["$rustc"],
|
"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")]
|
#[cfg(target_os = "windows")]
|
||||||
window.set_decorations(true).unwrap();
|
window.set_decorations(true).unwrap();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user