mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
fix: shell.openPath should be non-blocking (#48079)
fix: shell.openPath should be non-blocking
This commit is contained in:
@@ -342,7 +342,7 @@ void ShowItemInFolder(const base::FilePath& full_path) {
|
||||
|
||||
void OpenPath(const base::FilePath& full_path, OpenCallback callback) {
|
||||
// This is async, so we don't care about the return value.
|
||||
XDGOpen(full_path.DirName(), full_path.value(), true, std::move(callback));
|
||||
XDGOpen(full_path.DirName(), full_path.value(), false, std::move(callback));
|
||||
}
|
||||
|
||||
void OpenFolder(const base::FilePath& full_path) {
|
||||
|
||||
Reference in New Issue
Block a user