From cf66649db7dcffb16763f3db2b30fb46053a3eec Mon Sep 17 00:00:00 2001 From: Junkui Zhang <364772080@qq.com> Date: Fri, 8 Mar 2024 13:54:13 +0800 Subject: [PATCH] run fmt --- crates/gpui/src/platform/windows/platform.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/gpui/src/platform/windows/platform.rs b/crates/gpui/src/platform/windows/platform.rs index bc67d16e2539c..3f00aefe1eb56 100644 --- a/crates/gpui/src/platform/windows/platform.rs +++ b/crates/gpui/src/platform/windows/platform.rs @@ -28,18 +28,15 @@ use windows::{ Graphics::DirectComposition::DCompositionWaitForCompositorClock, System::{ Com::{CoCreateInstance, CreateBindCtx, CLSCTX_ALL}, + Ole::{OleInitialize, OleUninitialize}, Threading::{CreateEventW, GetCurrentThreadId, INFINITE}, Time::{GetTimeZoneInformation, TIME_ZONE_ID_INVALID}, - { - Ole::{OleInitialize, OleUninitialize}, - Threading::{CreateEventW, GetCurrentThreadId, INFINITE}, - }, }, UI::{ Input::KeyboardAndMouse::GetDoubleClickTime, Shell::{ FileSaveDialog, IFileSaveDialog, IShellItem, SHCreateItemFromParsingName, - ShellExecuteW, SIGDN_DESKTOPABSOLUTEPARSING, + ShellExecuteW, SIGDN_FILESYSPATH, }, WindowsAndMessaging::{ DispatchMessageW, EnumThreadWindows, LoadImageW, PeekMessageW, PostQuitMessage, @@ -364,7 +361,7 @@ impl Platform for WindowsPlatform { return; }; if let Ok(shell_item) = dialog.GetResult() { - if let Ok(file) = shell_item.GetDisplayName(SIGDN_DESKTOPABSOLUTEPARSING) { + if let Ok(file) = shell_item.GetDisplayName(SIGDN_FILESYSPATH) { let _ = tx.send(Some(PathBuf::from(file.to_string().unwrap()))); return; }