windows: Bring back restoration of tabs (#25870)

Closes #25022

Release Notes:

- N/A
This commit is contained in:
张小白
2025-03-01 17:18:34 +00:00
committed by GitHub
parent 48e09c0026
commit 6713ec8cdf
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -146,6 +146,12 @@ impl From<SanitizedPath> for Arc<Path> {
}
}
impl From<SanitizedPath> for PathBuf {
fn from(sanitized_path: SanitizedPath) -> Self {
sanitized_path.0.as_ref().into()
}
}
impl<T: AsRef<Path>> From<T> for SanitizedPath {
#[cfg(not(target_os = "windows"))]
fn from(path: T) -> Self {