🎨 Open the Explorer window in the foreground (#14828)

fix https://github.com/siyuan-note/siyuan/issues/12652
This commit is contained in:
Jeffrey Chen 2025-05-22 12:11:42 +08:00 committed by GitHub
parent 6ce25af3c6
commit bf08509986
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 25 additions and 12 deletions

View file

@ -21,6 +21,12 @@ export const showFileInFolder = (filePath: string) => {
/// #endif
};
export const openPath = (filePath: string) => {
/// #if !BROWSER
ipcRenderer.send(Constants.SIYUAN_OPEN_PATH, filePath);
/// #endif
};
export const getIdZoomInByPath = () => {
const searchParams = new URLSearchParams(window.location.search);
const PWAURL = searchParams.get("url");